model dialog

F

fly_potato

Hi,

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.

Any help will be appreciated.
 
P

Phlip

fly_potato said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top