This example uses the WinQueryPointerInfo call to obtain the bit-map handle of the color bit map.

#define INCL_WINPOINTERS
#define INCL_WINDESKTOP
#include <OS2.H>

HAB         hab;
HPOINTER    hpointer;
POINTERINFO pointerinfo;
HBITMAP     hbm;             /* Bit-map handle of color bit map  */

hpointer = WinQueryPointer(HWND_DESKTOP);

WinQueryPointerInfo(hpointer,
                    &pointerinfo);

hbm = pointerinfo.hbmColor;


[Back] [Next]