Header_SetHotDivider (Windows CE 5.0)
This macro changes the color of a divider between header items to indicate the destination of an external drag-and-drop operation.
#define Header_SetHotDivider(hwnd, fPos, dw) \ (int)SNDMSG((hwnd), HDM_SETHOTDIVIDER, (WPARAM)fPos, (LPARAM)dw)
Parameters
hwnd
Handle to a header control.fPos
Boolean value that specifies how dw is to be interpreted.dw
Value held here is interpreted depending on the value of fPos.If fPos is TRUE, then dw represents the x- and y- client coordinates of the pointer. The x-coordinate is in the low-order word, and the y-coordinate is in the high-order word. Upon receiving the message, the header control highlights the appropriate divider based on the dw coordinates.
If fPos is FALSE, then dw represents the integer index of the divider that will be highlighted.
Return Values
Returns the index of the divider that the control highlighted.
Remarks
A header control set to the HDS_DRAGDROP style produces this effect automatically. This message is intended to be used when the owner of the control handles drag-and-drop operations manually.
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.
See Also
Header Controls Macros | HDM_SETHOTDIVIDER
Send Feedback on this topic to the authors