CMenu::EnableMenuItem

This method either enables or disables and dims a menu item.

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

UINT EnableMenuItem ( UINT nIDEnableItem, UINT nEnable );

Remarks

MFC for Windows CE does not support the MF_DISABLED flag in the nEnable parameter. Use the MF_GRAYED flag instead.

See Also

CMenu::GetMenuState