CMenu::EnableMenuItem

Call this member function to enable, or disable and dim, a menu item.

Syntax

UINT EnableMenuItem ( UINT nIDEnableItem, UINT nEnable );

At a Glance

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

Remarks

In MFC for Windows CE, you can't use the MF_DISABLED flag in the nEnable parameter. Use the MF_GRAYED flag instead.

See Also

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