There are a few things you can do.
(1). CDialog:: OnInitDialog, . , , .
(2) - , . , , ProcessMessages, , :
void ProcessMessages()
{
MSG msg;
CWinApp* pApp = AfxGetApp();
while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
{
pApp->PumpMessage();
}
}
: , - , .
, API, PostThreadMessage, , .
:
http://msdn.microsoft.com/en-us/library/ms644946(VS.85).aspx
:
, PostThreadMessage, . , , , . , ( MessageBox DialogBox), . loop, .
Zeus IDE, , , . , .