CMenu::GetMenuString

Call this member function to copy the label of the specified menu item to the specified buffer.

Syntax

int GetMenuString( UINT nIDItem, LPTSTR lpString, int nMaxCount, UINT nFlags ) const;

int GetMenuString( UINT nIDItem, CString& rString, UINT nFlags ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

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.

See Also

CMenu Overview, CMenu Member Functions, Menu Classes, CMenu::GetMenuState, CMenu::ModifyMenu