Share via


CMFCToolBar::GetCommandButtons

Returns a list of buttons that have a specified command ID from all toolbars in the application.

static int GetCommandButtons(
   UINT uiCmd,
   CObList& listButtons 
);

Parameters

  • [in] uiCmd
    The command ID of the buttons.

  • [out] listButtons
    A reference to a CObList Class object that receives the list of toolbar buttons.

Return Value

The number of buttons that have the specified command ID.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart