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.
31 lines
567 B
C++
31 lines
567 B
C++
#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);
|
|
} |