base
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include "stdafx.h"
|
||||
#include "TimedMsgBox.h"
|
||||
|
||||
void CTimedMsgBox::Do(PCTSTR pszCaption, LPCTSTR pszTitle, UINT nType)
|
||||
{
|
||||
CMsgBoxThread *pthread = new CMsgBoxThread(pszCaption, pszTitle, nType);
|
||||
if (!thread)
|
||||
return;
|
||||
|
||||
thread->Start();
|
||||
|
||||
Sleep(MSGBOX_DELAY);
|
||||
|
||||
try
|
||||
{
|
||||
delete pthread;
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user