Share via


CMFCRibbonButton::SetDefaultCommand

Enables the default command for the ribbon button.

void SetDefaultCommand(
   BOOL bSet=TRUE 
);

Parameters

  • [in] bSet
    If TRUE, the button can execute its default command. If FALSE, the button cannot execute its default command.

Remarks

bSet is relevant only when the button has a menu. If bSet is TRUE, the button can execute its default command and the assigned pop-up menu appears only when a user clicks the arrow at the right edge of the button. Otherwise, the button cannot execute its default command, and the pop-up menu appears regardless of which area of the button the user clicks.

Requirements

Header: afxribbonbutton.h

See Also

Reference

CMFCRibbonButton Class

Hierarchy Chart