Re: disabling all menu and its sub menus
- From: "Manikandan" <manikandan_r@xxxxxxxxxxx>
- Date: Thu, 9 Jun 2005 14:48:05 +0530
yes joe it is working thanks
regards
mani
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:l9e2a1dvt1vhiqpqk17p2rgcr6tgk7u790@xxxxxxxxxx
> Add WM_COMMAND_UI handlers for each menu item.
> joe
> On Fri, 3 Jun 2005 10:26:37 +0530, "Manikandan" <manikandan_r@xxxxxxxxxxx>
> wrote:
>
>>joseph ,
>>
>>your code work fine for the main menu.
>>
>>but i want to disable the sub menu items leaving the main menus enabled.
>>
>>how to do that?
>>
>>thanks and regards
>>manikandan.r
>>"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
>>news:piss9196ostusk5e6unoeorujlmpf0qnak@xxxxxxxxxx
>>> 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
>>
>
> Joseph M. Newcomer [MVP]
> email: newcomer@xxxxxxxxxxxx
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- disabling all menu and its sub menus
- From: Manikandan
- Re: disabling all menu and its sub menus
- From: Ajay Kalra
- Re: disabling all menu and its sub menus
- From: Joseph M . Newcomer
- Re: disabling all menu and its sub menus
- From: Manikandan
- Re: disabling all menu and its sub menus
- From: Joseph M . Newcomer
- disabling all menu and its sub menus
- Prev by Date: Re: Retrieve text only from HTML code that is inside XML file
- Next by Date: Re: WM_KILLFOCUS or OnKillFocus
- Previous by thread: Re: disabling all menu and its sub menus
- Next by thread: Re: CComboBox behaviour
- Index(es):
Relevant Pages
|