Condividi tramite


CMFCToolBarMenuButton::SetTearOff

Specifies the ID of the tear-off bar for the drop-down menu.

virtual void SetTearOff(
   UINT uiBarID 
);

Parameters

  • [in] uiBarID
    Specifies a new tear-off bar ID.

Remarks

Call this method to specify the ID for the tear-off bar that is created when the user drags the menu button off of a menu bar. If the uiBarID parameter is 0, the user cannot tear off the menu button.

Call CWinAppEx::EnableTearOffMenus to enable the tear-off menu feature in your application.

Requirements

Header: afxtoolbarmenubutton.h

See Also

Reference

CMFCToolBarMenuButton Class

Hierarchy Chart