version 1.1.1.1, 2000/01/09 17:01:19 |
version 1.1.1.3, 2003/09/15 07:09:40 |
Line 132 PauseBox(LPPW lppw) |
|
Line 132 PauseBox(LPPW lppw) |
|
|
|
lppw->bPause = TRUE; |
lppw->bPause = TRUE; |
lppw->bPauseCancel = IDCANCEL; |
lppw->bPauseCancel = IDCANCEL; |
while (lppw->bPause) |
while (lppw->bPause) { |
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) { |
/* HBB 20021211: Nigel Nunn found a better way to avoid |
|
* 100% CPU load --> use it */ |
|
if (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) { |
/* wait until window closed */ |
/* wait until window closed */ |
TranslateMessage(&msg); |
TranslateMessage(&msg); |
DispatchMessage(&msg); |
DispatchMessage(&msg); |
} |
} else |
|
WaitMessage(); |
|
} |
DestroyWindow(lppw->hWndPause); |
DestroyWindow(lppw->hWndPause); |
#ifndef WIN32 |
#ifndef WIN32 |
#ifndef __DLL__ |
#ifndef __DLL__ |