RB_BEGINDRAGRB_BEGINDRAG*
*



Contents  *



Index  *Topic Contents
*Previous Topic: Rebar Control Messages
*Next Topic: RB_DELETEBAND

RB_BEGINDRAG


RB_BEGINDRAG
    wParam = (WPARAM)(UINT) uBand;
    lParam = (LPARAM)(DWORD)dwPos;

Puts the rebar control in drag-and-drop mode. This message does not cause a RBN_BEGINDRAG notification to be sent.

uBand
Zero-based index of the band that the drag-and-drop operation will affect.
dwPos
DWORD value that contains the starting mouse coordinates. The horizontal coordinate is contained in the LOWORD and the vertical coordinate is contained in the HIWORD. If you pass (DWORD)-1, the rebar control will use the position of the mouse the last time the control's thread called GetMessage or PeekMessage.

The RB_BEGINDRAG, RB_DRAGMOVE, and RB_ENDDRAG messages allow you to implement an IDropTarget::DragEnter, send the RB_DRAGMOVE message in response to RB_ENDDRAG message in response to IDropTarget::DragLeave.

Version 4.71


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.