en:ibm:prcp:mou:setptrpos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:ibm:prcp:mou:setptrpos [2016/02/04 07:20] – created valeriusen:ibm:prcp:mou:setptrpos [2016/09/15 04:32] (current) valerius
Line 1: Line 1:
 ==== MouSetPtrPos ==== ==== MouSetPtrPos ====
  
-**Bindings**: C, MASM +**Bindings**: [[setptrpos#bindings|C]][[setptrpos#MASM bindings|MASM]]
  
 This call directs the mouse driver to set a new row and column coordinate position for the mouse pointer.  This call directs the mouse driver to set a new row and column coordinate position for the mouse pointer. 
Line 34: Line 34:
  
 This function has no effect on the display's current collision area definition as specified by the [[en:ibm:prcp:mou:drawptr|MouDrawPtr]] call. If the mouse pointer image is directed into a defined collision area, the pointer image is not drawn until either the pointer is moved outside the collision area or the collision area is released by the [[en:ibm:prcp:mou:drawptr|MouDrawPtr]] call.  This function has no effect on the display's current collision area definition as specified by the [[en:ibm:prcp:mou:drawptr|MouDrawPtr]] call. If the mouse pointer image is directed into a defined collision area, the pointer image is not drawn until either the pointer is moved outside the collision area or the collision area is released by the [[en:ibm:prcp:mou:drawptr|MouDrawPtr]] call. 
 +
 +=== C bindings ===
 +
 +<code c>
 +typedef struct _PTRLOC {    /* moupl */
 +  USHORT row;               /* pointer row coordinate screen
 +                                 position */
 +  USHORT col;               /* pointer column coordinate screen
 +                                 position */
 +} PTRLOC;
 +
 +#define INCL_MOU
 +
 +USHORT  rc = MouSetPtrPos(PtrPos, DeviceHandle);
 +
 +PPTRLOC          PtrPos;        /* Double word structure */
 +HMOU             DeviceHandle;  /* Mouse device handle */
 +
 +USHORT           rc;            /* return code */
 +</code>
 +
 +=== MASM bindings ===
 +
 +<code asm>
 +PTRLOC  struc
 +  moupl_row  dw  ? ;pointer row coordinate screen position
 +  moupl_col  dw  ? ;pointer column coordinate screen position
 +PTRLOC  ends
 +
 +EXTRN  MouSetPtrPos:FAR
 +INCL_MOU            EQU 1
 +
 +PUSH@  OTHER   PtrPos        ;Double word structure
 +PUSH   WORD    DeviceHandle  ;Mouse device handle
 +CALL   MouSetPtrPos
 +
 +Returns WORD
 +</code>