This example uses the WinQueryQueueStatus to see if a WM_MOUSEMOVE message has been placed in the queue.

#define INCL_WINMESSAGEMGR
#include <OS2.H>

if(WinQueryQueueStatus(HWND_DESKTOP) == QS_MOUSEMOVE)
{
   /* . */
   /* . */
}


[Back] [Next]