fly_potato wrote:
I tried to stack a propertysheet in one CDialog(dlg1). While on one
property page, when I click a button(btn1), I want to initialize
another mode dialog(dlg2). But for some reason, every time when I
click the button btn1, the program just stuck there, cannot see dlg2.
But when I made another button(btn2) on dlg1, and call DoModel(), the
dlg2 showed up properly. I guess I need to do some extra setting on
the propertysheet.
You will get the best answer on a newsgroup that covers modal dialogs
(assumably for Win32). Find one with
http://groups.google.com
But beware that nobody (who is anybody) ever uses DoModal(). It prevents too
many bug patches in the Win32 architecture - specifically the bug patch
called PreTranslateMessage(). Always raise dialogs as modeless, but set
their parent window's ENABLED state to FALSE for their duration. Win32 will
treat this situation exactly as a modal dialog.
--
Phlip
http://www.xpsd.org/cgi-bin/wiki?Tes...UserInterfaces