Loading ...
Sorry, an error occurred while loading the content.

Re: Modal dialog with popup menu behavior?

Expand Messages
  • dbrown0710
    Yes, that was it! Thank you :) ... has any chance to do it s job. ... (CMenuDialog ) on top of your message map. ... WM_INITDIALOG, WM_ACTIVATE, and
    Message 1 of 5 , Mar 17 9:46 AM
    • 0 Attachment
      Yes, that was it! Thank you :)

      --- In wtl@yahoogroups.com, "Alain Rist" <ar@...> wrote:
      >
      > You probably handle WM_INITDIALOG before CMenuDialog<MyDialogName>
      has any chance to do it's job.
      >
      > To prevent that the simplest is to CHAIN_MSG_MAP
      (CMenuDialog<CAboutDlg>) on top of your message map.
      >
      > You may alternatively set bHandled to FALSE in your handlers for
      WM_INITDIALOG, WM_ACTIVATE, and WM_COMMAND with IDOK.
      >
      > cheers,
      > AR
      >
      >
      > ----- Original Message -----
      > From: dbrown0710
      > To: wtl@yahoogroups.com
      > Sent: Monday, March 17, 2008 1:34 AM
      > Subject: [wtl] Re: Modal dialog with popup menu behavior?
      >
      >
      > Hi - just tried it, but it doesn't seem to work. I derive my
      class
      > from CDialogImpl<> and CMenuDialog<>, and then I have:
      > CHAIN_MSG_MAP(CMenuDialog<MyDialogName>) in the message map
      section.
      >
      > When I call DoModal on my dialog, it still just flashes when I
      mouse-
      > click outside of its window.
      >
      > [Non-text portions of this message have been removed]
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.