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);
}

'NIght.. > Technical Know-How' 카테고리의 다른 글

try catch문 사용예 2  (0) 2008/10/30
try catch문 사용예 1  (0) 2008/10/30
Sleep 함수구현  (0) 2008/10/30
SHBrowseForFolder 사용예  (0) 2008/10/30
RichEdit 에러  (0) 2008/10/30
reg 파일 만들기  (0) 2008/10/30

Write your message and submit