Sleep 함수구현
2008/10/30 18:36
static void MySleep(int milliSeconds)
{
static MSG msg;
DWORD Count=GetTickCount();
do{
while (::PeekMessage(&msg,NULL,0,0,PM_NOREMOVE)) {
if (!AfxGetApp()->PumpMessage()) {
::PostQuitMessage(0);
return ;
}
}
}while(int(GetTickCount()-Count)<milliSeconds);
}
|
|
|
|
|
Trackback Address:http://darksoft.co.kr/trackback/160






