Stuck in ShowWindow
-
Hi all, I have a multithreaded application written in c++ vs6. I try to create a new dialog within an existing dialog in that application and when i call ShowWindow(SW_SHOW)for the new dialog it doesnt do anything. If i put a break point there, it seems that it stops in the call to ShowWindow and doesnt continue the execution. Can someone explain this strange behavior and suggest a way to overcome this problem? Thanks Simon.
-
Hi all, I have a multithreaded application written in c++ vs6. I try to create a new dialog within an existing dialog in that application and when i call ShowWindow(SW_SHOW)for the new dialog it doesnt do anything. If i put a break point there, it seems that it stops in the call to ShowWindow and doesnt continue the execution. Can someone explain this strange behavior and suggest a way to overcome this problem? Thanks Simon.
All these dialogs are created on the same thread?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
All these dialogs are created on the same thread?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Mark Salsbery wrote:
All these dialogs are created on the same thread?
ddd_shocron wrote:
I try to create a new dialog within an existing dialog
Doesn't that tell you exactly what is being done? It's created within :laugh:
led mike
led mike wrote:
Doesn't that tell you exactly what is being done?
:sigh: I know it should, but I'm not so bright... ;P (early) Happy New Year! :beer:
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
All these dialogs are created on the same thread?
Mark Salsbery Microsoft MVP - Visual C++ :java:
yes all these dialogs are created in the same thread. To be more precise i call the create function for that dialog in the ctor of the containing dialog and i call the ShowWindow(SW_SHOW) from within the OnInitDialog ,just before i return true for the OnInitDialog. :sigh: dj4400 formerly known as ddd_shocron
modified on Thursday, January 1, 2009 3:14 AM
-
yes all these dialogs are created in the same thread. To be more precise i call the create function for that dialog in the ctor of the containing dialog and i call the ShowWindow(SW_SHOW) from within the OnInitDialog ,just before i return true for the OnInitDialog. :sigh: dj4400 formerly known as ddd_shocron
modified on Thursday, January 1, 2009 3:14 AM
dj4400 wrote:
i call the create function for that dialog in the ctor of the containing dialog
If the containing dialog is used as the parent for the created dialog, then that may not work - the parent dialog window (HWND) hasn't been created yet at that point. Try calling create for the child dialog in the parent's OnInitDialog() (after calling the base class' OnInitDialog()). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
dj4400 wrote:
i call the create function for that dialog in the ctor of the containing dialog
If the containing dialog is used as the parent for the created dialog, then that may not work - the parent dialog window (HWND) hasn't been created yet at that point. Try calling create for the child dialog in the parent's OnInitDialog() (after calling the base class' OnInitDialog()). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: