#include "StdAfx.h" #include "MsgBox.h" #include "LogMgr.h" CMsgBox gMsgBox; CMsgBox::CMsgBox(void) { m_bShowing = false; } CMsgBox::~CMsgBox(void) { } void CMsgBox::Show(CString str,bool bError) { CString Log = "MsgBox---->"+str; //Êä³öµ½ÈÕÖ¾ gLogMgr->WriteDebugLog(Log); AfxMessageBox(str); } bool CMsgBox::ConfirmOkCancel(CString str) { return (AfxMessageBox(str,MB_OKCANCEL)==IDOK); } void CMsgBox::ShowSetMsg() { m_bShowing = true; Show(m_Msg); m_bShowing = false; }