Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 2.42 KB

rb-begindrag.md

File metadata and controls

62 lines (39 loc) · 2.42 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
RB_BEGINDRAG message (Commctrl.h)
Puts the rebar control in drag-and-drop mode. This message does not cause a RBN\_BEGINDRAG notification to be sent.
1e3e4928-cb84-4fd4-8056-84de1f791d1c
RB_BEGINDRAG message Windows Controls
apiref
RB_BEGINDRAG
Commctrl.h
HeaderDef
reference
05/31/2018

RB_BEGINDRAG message

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

Parameters

wParam

Zero-based index of the band that the drag-and-drop operation will affect.

lParam

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.

Return value

The return value for this message is not used.

Remarks

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 IDropTarget::DragEnter, send the RB_DRAGMOVE message in response to IDropTarget::DragOver, and the RB_ENDDRAG message in response to IDropTarget::Drop and IDropTarget::DragLeave.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h