G
Guest
I have an application with several Form based windows. I want to be able to
start the application minimized, so I have a command line parameter to set
WindowState to Minimized.
I set the window state in the OnCreateControl (because if I do it in the
constructor there are some sizing issues) and the window starts minimized.
However, when I restore the window, most of the forms are blank (save for the
last one added). I can see through the debugger that the WindowState is now
Normal, but none of the child controls show.
The app is being restored to the normal size by using ShowWindow( hwnd,
SW_NORMAL), which appears to set all the forms to Normal. I see the app
visually return to normal but only one of the child does so properly.
How are the WindowState property and the ::ShowWindow method related?
Any suggestions on a better way to handle this?
/ken
start the application minimized, so I have a command line parameter to set
WindowState to Minimized.
I set the window state in the OnCreateControl (because if I do it in the
constructor there are some sizing issues) and the window starts minimized.
However, when I restore the window, most of the forms are blank (save for the
last one added). I can see through the debugger that the WindowState is now
Normal, but none of the child controls show.
The app is being restored to the normal size by using ShowWindow( hwnd,
SW_NORMAL), which appears to set all the forms to Normal. I see the app
visually return to normal but only one of the child does so properly.
How are the WindowState property and the ::ShowWindow method related?
Any suggestions on a better way to handle this?
/ken