[Message Deleted]
-
If the menu items do not have handlers ( ON_COMMAND ) they will be disabled by default. If you want to have them enabled, either had handlers for the command or and update handlers ( ON_UPDATE_COMMAND_UI ) to enablet the menu item.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
Hello, try this to solve it:
// to activate an menuitem: m_cMenu.EnableMenuItem(IDC_FILE_SAVE, MF_ENABLED); m_cMenu.EnableMenuItem(IDC_FILE_SAVE_AS, MF_ENABLED); // to deactivate an menuitem: m_cMenu.EnableMenuItem(IDC_FILE_SAVE, MF_DISABLED | MF_GRAYED); m_cMenu.EnableMenuItem(IDC_FILE_SAVE_AS, MF_DISABLED | MF_GRAYED); // NOTE: "m_cMenu" is not a submenu, is no matter is this a submenu or not // m_cMenu.[EnableMenuItem] takes all subitems such as popupmenu when you dropdown the menuitem // example: MenuItem "File"->"Save" and "File"->"SaveAs" is in my sample
i hope this can help you! regards break; -
Inside your MDI MainFrame Constructor set this boolean variable to
FALSE
m_bAutoMenuEnable = FALSE;
Nibu thomas Software Developer