Re: return control to it's original size
- Posted by DerekParnell (admin) Dec 17, 2011
- 1361 views
dcole said...
Hello Everybody,
I know there is command to return a control to it's original size (the one used in create or createEx).
I have seen this somewhere in the docs.
I can't find it now.
Any help appreciated.
Don Cole
There is no command that can do that. The nearest we have is to call showWindow() with the SW_RESTORE option. But all that does is change a minimized window to whatever its size was at the time it was minimized.
There is no command that restores a window to its initial creation size. You have to do that yourself using getCtlSize()/setCtlSize() routines.