Expand Minimize
This topic has not yet been rated - Rate this topic

CMFCToolBarMenuButton::GetCommands

Gives read-only access to the list of commands in the toolbar menu.

const CObList& GetCommands() const;

A const reference to a CObList Class object, which contains a collection of CMFCToolBarButton Class objects.

A toolbar menu button can display a submenu. You can provide the list of commands in the submenu in the constructor or in CMFCToolBarMenuButton::CreateFromMenu as a handle to a menu (HMENU). The menu is converted to a list of objects that are derived from CMFCToolBarButton Class and stored in the internal CObList object. You can access this list by calling this method.

Header: afxtoolbarmenubutton.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.