Call this member function to enable, or disable and dim, a menu item.
UINT EnableMenuItem ( UINT nIDEnableItem, UINT nEnable );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
In MFC for Windows CE, you can't use the MF_DISABLED flag in the nEnable parameter. Use the MF_GRAYED flag instead.
CMenu Overview, CMenu Member Functions, Menu Classes, CMenu::GetMenuState