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.
- The return value for this message is not used.
- 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 interface for a rebar control. You send the RB_BEGINDRAG message in response to RB_DRAGMOVE message in response to IDropTarget::DragOver, and the RB_ENDDRAG message in response to IDropTarget::Drop and IDropTarget::DragLeave.
Version 4.71
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.