1. return control to it's original size
- Posted by dcole Dec 16, 2011
- 1320 views
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
2. Re: return control to it's original size
- Posted by petelomax Dec 17, 2011
- 1251 views
Do you mean showWindow (see also isMinimized, isMaximized)?
Alternatively you can use getWindowRect and setWindowRect.
Regards, Pete
3. Re: return control to it's original size
- Posted by DerekParnell (admin) Dec 17, 2011
- 1358 views
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.
4. Re: return control to it's original size
- Posted by dcole Dec 17, 2011
- 1164 views
Thanks Pete and Derek,
I must have been seeing things.
I did as you suggested, created my own routine.
Don Cole