msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WM_CONTROLPOINTER (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMESSAGEMGR
 
WM_CONTROLPOINTER
id = (USHORT) SHORT1FROMMP(mp1);      /* sender ID               */
hptr = (HPOINTER) LONGFROMMP(mp2);    /* handle to mouse pointer */
 
The WM_CONTROLPOINTER message is sent to a control's owner when the mouse
pointer moves over the control window, allowing the owner to set the mouse
pointer to a different shape. The control passes an HPOINTER handle to a
mouse pointer as part of this message. An application can alter the default
pointer shape by passing back a different HPOINTER handle as the result of
this message.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
id         Low word of mp1. Identifies the control window sending the
           message.
 
hptr       Low and high word of mp2. Identifies the mouse pointer that the
           control is to use.
 
Return Value
 
An application that processes this message should return the handle of the
mouse pointer to be used while the mouse is positioned over the control
window.
 
See Also
 
WinCreatePointer