Re: disabling all menu and its sub menus



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


.



Relevant Pages

  • Re: dd9.exe
    ... Regards ... Tasmania ... > | As soon as she goes online the connection icon in the system tray lights ... > | Joe ...
    (microsoft.public.windowsxp.general)
  • RE: 2 Questions
    ... Regards, ... Joe ... If memory serves me right, Warner Joseph wrote: ...
    (freebsd-stable)
  • Re: Computer does not recognise correct size of Drive
    ... Regards ... Joe ... Tasmania ... > If not & only the 2.0 Gig is present then it's likely the BIOS setup ...
    (microsoft.public.windowsxp.general)
  • Re: Cannot access site after upgrading to FP2003
    ... Regards, ... Disclaimer: This posting is provided "as is" with no warranties and confers ... | From: "Joe Grover" ...
    (microsoft.public.frontpage.client)
  • Re: in the USA - The Southern Part
    ... >>> Regards, ... >> Hi Joe ... >> used cubic inches - probably because they were importing US engines to ... international values for measurement. ...
    (comp.databases.pick)