i have a window with a button on it. when the button is pressed it creates a modal window. the problem im having is that when i close the modal window while the window is completely inside my main window, my main window hides. this problem does not occur when i close the modal window when it is partially on my main window or completely off of it. also is there an easier method to create a modal window instead of the way ive coded it?

also to reproduce my problem you will need to have another application maximized behind my test application. otherwise my main window wont hide/move behind the maximized app.
Posted on 2004-07-08 11:45:29 by smurf
Your code works fine for me here (Win2k Pro version). I was going to try and
do some debugging on it but since I cant duplicate the problem.... =)
Posted on 2004-07-08 11:56:30 by Graebel
when i close the modal window while the window is completely inside my main window, my main window hides.


Hi smurf


It works fine here (WinXP). It doesn't hide, while closing the modal dialog :)


regards,



The SharK
Posted on 2004-07-09 00:58:52 by The SharK
im using winxp and i still can reproduce my problem. sometimes it will reproduce but ive noticed a few instances where it works like it should. thanks for testing.
Posted on 2004-07-09 06:25:24 by smurf
after invoke ExitProcess,eax

should u add this?
invoke InitCommonControls
im not fully understand
Posted on 2004-07-11 03:13:20 by krakers
after invoke ExitProcess,eax
should u add this?
invoke InitCommonControls
im not fully understand

that was not suppose to be there. i had other controls on my window at one point. that line can be deleted.

invoke InitCommonControls
Posted on 2004-07-11 08:48:43 by smurf