Re: Modal dialog with popup menu behavior?
- Yes, that was it! Thank you :)
--- In email@example.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.
> ----- Original Message -----
> From: dbrown0710
> To: firstname.lastname@example.org
> 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
> from CDialogImpl<> and CMenuDialog<>, and then I have:
> CHAIN_MSG_MAP(CMenuDialog<MyDialogName>) in the message map
> When I call DoModal on my dialog, it still just flashes when I
> click outside of its window.
> [Non-text portions of this message have been removed]