Queries the mouse device driver to determine the current row and column coordinate position of the mouse pointer.

#define INCL_MOU
#include <os2.h>

PPTRLOC    PtrPos;        /*  Pointer to the mouse pointer data structure. */
HMOU       DeviceHandle;  /*  Reserved.  Must be 0. */
APIRET     rc;            /*  Return code. */

rc = MouGetPtrPos(PtrPos, DeviceHandle);


[Back] [Next]