Files
interactive/application/sp-console(down)/Common/TimedMsgBox.cpp
2026-08-07 17:38:18 +09:00

21 lines
328 B
C++

#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(...)
{
}
}