Sleep 함수구현



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);
}
Creative Commons License
Creative Commons License
2008/10/30 18:36 2008/10/30 18:36


Add Rss AllBolg UP Button BlogKorea UP Button Daum View UP Button Mixsh UP Button HANRSS Add Button GooGle Reader Add Button

기억은 지워도 사랑은 지워지지 않습니다.


Trackback Address:http://darksoft.co.kr/trackback/160