Partager via


CMFCToolBarButton::SetVisible

Specifies whether the button is visible.

void SetVisible(
   BOOL bShow=TRUE
);

Parameters

  • [in] bShow
    A Boolean value that specifies whether to show or hide the button. If this parameter is TRUE, the button is shown. If the parameter is FALSE, the button is hidden.

Remarks

Use this function to hide or show a particular toolbar button. Call the CPane::AdjustSizeImmediate method after you call this method.

Requirements

Header: afxtoolbarbutton.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart

CPane::AdjustSizeImmediate