Compartilhar via


CMFCToolBarButton::OnBeforeDrop

Specifies whether a user can drop the button onto the target toolbar.

virtual BOOL OnBeforeDrop(
   CMFCToolBar* pTarget
);

Parameters

  • [in] pTarget
    The target of the drag-and-drop operation.

Return Value

TRUE if the button can be dropped onto the provided target toolbar; otherwise FALSE.

Remarks

The framework calls this method before the button is dropped onto a toolbar.

The default implementation of this method returns TRUE. Override this method to return FALSE to disable the drop operation on the specified target.

Requirements

Header: afxtoolbarbutton.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart