Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:docs:fapi:mougetptrpos [2021/10/07 13:46] – created prokushev | en:docs:fapi:mougetptrpos [2021/11/04 13:10] (current) – prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{page> | ||
| + | |||
| + | ====== MouGetPtrPos ====== | ||
| + | |||
| This call queries the mouse driver to determine the current row and column coordinate position of the mouse pointer. | This call queries the mouse driver to determine the current row and column coordinate position of the mouse pointer. | ||
| - | ==Syntax== | + | ===== Syntax ===== |
| + | <code c> | ||
| | | ||
| + | </ | ||
| - | ==Parameters== | + | ===== Parameters ===== |
| - | ;PtrPos (P[[PTRLOC]]) - output: Address of the mouse pointer position structure. | + | |
| - | ; | + | |
| - | ==Return Code== | + | * PtrPos |
| - | ;rc (USHORT) - return: | + | * DeviceHandle ([[HMOU]]) - input: Contains the handle of the mouse device obtained from a previous MouOpen. |
| - | *0 NO_ERROR | + | |
| - | *385 ERROR_MOUSE_NO_DEVICE | + | |
| - | *466 ERROR_MOU_DETACHED | + | |
| - | *501 ERROR_MOUSE_NO_CONSOLE | + | |
| - | *505 ERROR_MOU_EXTENDED_SG | + | |
| - | ==Sample== | + | ===== Return Code ===== |
| - | < | + | |
| - | #define INCL_MOU | + | |
| - | #include < | + | |
| - | PPTRLOC | + | rc (USHORT) - return:Return code descriptions are: |
| - | HMOU | + | |
| - | APIRET | + | |
| - | rc = MouGetPtrPos(PtrPos, | + | *0 NO_ERROR |
| - | </ | + | *385 ERROR_MOUSE_NO_DEVICE |
| + | *466 ERROR_MOU_DETACHED | ||
| + | *501 ERROR_MOUSE_NO_CONSOLE | ||
| + | *505 ERROR_MOU_EXTENDED_SG | ||
| + | ===== Remarks ===== | ||
| - | ==Remarks== | ||
| For a text window (VIO) application, | For a text window (VIO) application, | ||
| - | ==Bindings== | + | ===== Bindings |
| - | ===C=== | + | |
| - | <PRE> | + | ====C==== |
| + | <code c> | ||
| typedef struct _PTRLOC { /* moupl */ | typedef struct _PTRLOC { /* moupl */ | ||
| USHORT row; /* pointer row coordinate screen position */ | USHORT row; /* pointer row coordinate screen position */ | ||
| Line 48: | Line 46: | ||
| USHORT | USHORT | ||
| - | </PRE> | + | </code> |
| - | ===MASM=== | + | ====MASM==== |
| - | <PRE> | + | <code asm> |
| PTRLOC | PTRLOC | ||
| moupl_row | moupl_row | ||
| Line 65: | Line 63: | ||
| Returns WORD | Returns WORD | ||
| - | </PRE> | + | </code> |
| + | |||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | <code asm> | ||
| + | #define INCL_MOU | ||
| + | #include < | ||
| + | |||
| + | PPTRLOC | ||
| + | HMOU | ||
| + | APIRET | ||
| + | |||
| + | rc = MouGetPtrPos(PtrPos, | ||
| + | </code> | ||
| - | [[Category:Mou]] | + | {{page> |




