Megosztás a következőn keresztül:


CToolBarCtrl::HideButton

Hides or shows the specified button in a toolbar control.

BOOL HideButton( 
   int nID, 
   BOOL bHide = TRUE  
);

Parameters

  • nID
    Command identifier of the button to hide or show.

  • bHide
    TRUE to hide the button, FALSE to show it.

Return Value

Nonzero if successful; otherwise zero.

Remarks

If you want to change more than one button state, consider calling SetState instead.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::IsButtonHidden

CToolBarCtrl::EnableButton

CToolBarCtrl::CheckButton

CToolBarCtrl::PressButton

CToolBarCtrl::Indeterminate

CToolBarCtrl::GetState

CToolBarCtrl::SetState

Other Resources

CToolBarCtrl Members