home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_10
/
2n10080a
< prev
next >
Wrap
Text File
|
1991-07-17
|
416b
|
19 lines
/*
* MyYield(): process any pending
* messages to the application,
* and return when none in the queue
*/
void MyYield()
{
MSG msg;
while ( PeekMessage( &msg, NULL,
NULL, NULL, PM_REMOVE ) ) {
if ( TranslateAccelerator(
hMainWnd, hAccTable, &msg) )
continue;
TranslateMessage( &msg );
DispatchMessage( &msg );
}
}