Re: Menu on Dialog



> I have Dialog appl with menu.
>
> For couple of this menus handlers are implemented as UPDATE_COMMAND_UI
> because I need to enable/disable them.
>
> Code inside these handlers work only when these handlers implemented
> in App.CPP.
>
> When these handlers implemented in Dialog.cpp code does't work.

An MFC "dialog-based" app with menus is not really a good idea. Why don't
you use an SDI app instead?

Take a look at the following FAQ on CodeGuru:
http://www.codeguru.com/forum/showthread.php?s=&threadid=267664

--
Guido Stercken-Sorrenti
MVP - Visual Developer / Visual C++



.



Relevant Pages

  • Menu on Dialog
    ... I have Dialog appl with menu. ... Code inside menu's handlers that implemented as COMMAND works fine. ... For couple of this menus handlers are implemented as UPDATE_COMMAND_UI ...
    (microsoft.public.vc.mfc)
  • Re: Order of Message Map Entries - Does It Matter?
    ... my SDI app was working properly until I decided to replace ... >> individual message handlers by a handler for a range. ... >> message map following the Class Wizard entries. ...
    (microsoft.public.vc.mfc)
  • Re: Order of Message Map Entries - Does It Matter?
    ... my SDI app was working properly until I decided to replace ... > individual message handlers by a handler for a range. ... > message map following the Class Wizard entries. ...
    (microsoft.public.vc.mfc)
  • [ANN] imap_to_rss 1.0 Released
    ... IMAPToRSS turns messages on an IMAP server into RSS entries when the ... Included handlers work for email from Amazon, ...
    (comp.lang.ruby)
  • CChildView::OnCreate()?
    ... I have a simple SDI app and my tutorial says add the following ... advance for any advice. ... Victor ...
    (microsoft.public.vc.mfc)

Loading