#include "StdAfx.h" #include "MsgBox.h" #include "LogMgr.h" #define MSG_TIMER 1//CCD Ô¤ÀÀʹÓõÄtimer ID CMsgBox::CMsgBox(void) { } CMsgBox::~CMsgBox(void) { } void CMsgBox::Show(CString str,bool bError) { if(bError) { gLogMgr->WriteDebugLog(str,_LOG_ERROR); } else { gLogMgr->WriteDebugLog(str); } AfxMessageBox(str); } bool CMsgBox::ConfirmOkCancel(CString str) { return (AfxMessageBox(str,MB_OKCANCEL)==IDOK); } bool CMsgBox::ConfirmYesNo(CString str) { return (AfxMessageBox(str,MB_YESNO)==IDOK); }