You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#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;
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
|
|
|
|
|
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;
|
|
|
|
|
}
|