Partager via


CMFCToolBarButton::OnBeforeDrag

Specifies whether the button can be dragged.

virtual BOOL OnBeforeDrag() const;

Return Value

TRUE if the button can be dragged; otherwise FALSE.

Remarks

The framework calls this method before the user starts to drag the button.

The default implementation of this method returns TRUE. Override this method to return FALSE to disable dragging of the button.

Requirements

Header: afxtoolbarbutton.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart