This function returns the handle of the window that has the pointer captured.

#define INCL_WININPUT
#define INCL_WINWINDOWMGR
#include <OS2.H>
HWND hwnd;    /* handle of window that has pointer captured */

hwnd = WinQueryCapture(HWND_DESKTOP);  /* window that has  */
                                          /* pointer captured */


[Back] [Next]