Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CWnd::GetMenuBarInfo

Retrieves information about the specified menu bar.

BOOL GetMenuBarInfo( 
   LONG idObject, 
   LONG idItem, 
   PMENUBARINFO pmbi 
) const;

idObject

Specifies the menu object. For a list of possible values, see GetMenuBarInfo.

idItem

Specifies the item for which to retrieve information. If this parameter is zero, the function retrieves information about the menu itself. If this parameter is 1, the function retrieves information about the first item on the menu, and so on.

pmbi

Pointer to a MENUBARINFO structure that receives the information.

Nonzero if the function succeeds; otherwise 0.

This member function emulates the functionality of the function GetMenuBarInfo, as described in the Windows SDK.

Header: afxwin.h

Community Additions

ADD
Show:
© 2015 Microsoft