This method copies the label of the specified menu item to the specified buffer.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
int GetMenuString( UINT nIDItem, LPTSTR lpString, int nMaxCount,
UINT nFlags ) const;
int GetMenuString( UINT nIDItem, CString& rString, UINT nFlags ) const;
In MFC for Windows CE, the return value indicates the actual number of characters (not bytes) copied to the buffer, not including the terminating null character.
CMenu::GetMenuState, CMenu::ModifyMenu