Re: disabling all menu and its sub menus

Tech-Archive recommends: Fix windows errors by optimizing your registry



The only problem is that it can't, as far as I know, enable/disable top-level menu items,
because they do not have menu IDs.
joe

On Wed, 1 Jun 2005 21:06:11 -0400, "Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote:

>If you are using MFC and the menu is attached to a CFrameWnd derived
>class(eg CMainFrame), it uses ON_UPDATE_COMMAND_UI mechanism to
>enable/disable menu items. This overrides whatever you are doing for menu
>items.

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.


Quantcast