1. return control to it's original size

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

new topic     » topic index » view message » categorize

2. Re: return control to it's original size

Do you mean showWindow (see also isMinimized, isMaximized)?
Alternatively you can use getWindowRect and setWindowRect.

Regards, Pete

new topic     » goto parent     » topic index » view message » categorize

3. Re: return control to it's original size

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: return control to it's original size

Thanks Pete and Derek,

I must have been seeing things.

I did as you suggested, created my own routine.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu