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"
|
|
|
|
|
|
|
|
|
|
#define MSG_TIMER 1//CCD Ԥ<><D4A4>ʹ<EFBFBD>õ<EFBFBD>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);
|
|
|
|
|
}
|