CMenu::GetMenuString

This method copies the label of the specified menu item to the specified buffer.

At a Glance

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

Syntax

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

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

Remarks

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.

See Also

CMenu::GetMenuState, CMenu::ModifyMenu