Call this member function to copy the label of the specified menu item to the specified buffer.
int GetMenuString( UINT nIDItem, LPTSTR lpString, int nMaxCount, UINT nFlags ) const;
int GetMenuString( UINT nIDItem, CString& rString, UINT nFlags ) const;
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
In MFC for Windows CE, the return value indicates the actual number of characters (not bytes) copied to the buffer, not including the null terminator.
CMenu Overview, CMenu Member Functions, Menu Classes, CMenu::GetMenuState, CMenu::ModifyMenu