Link to home
Start Free TrialLog in
Avatar of tdietz
tdietz

asked on

Messages not handled when creating modeless dialog

I am trying to create a modeless dialog within an ATL object using MFC.   If I call the CDialog::DoModal() method everything works fine.  All messages that I need are handled and the window works fine.

If I call CDialog::Create() however, I don't seem to get the chance to handle the standard messages like PreTranslateMessage or OnDestroy.  Why is this and how do I fix it?

Avatar of Nevering
Nevering

Is this an override class of CDialog, if so can you show some of the code.  It's possible that the message map may be messed up.
ASKER CERTIFIED SOLUTION
Avatar of shaig
shaig
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial