IonicWind Software

IWBasic => GUI Central => Topic started by: LarryMc on March 07, 2008, 07:38:10 PM

Title: Controls and @SIZE
Post by: LarryMc on March 07, 2008, 07:38:10 PM
When you create a window you can use the @SIZE flag to make the window resizable when the program is run.


Is there a way to create a window without the @SIZE flag but add/remove it under program control?

Like with some "SENDMESSAGE" thing?

Larry
Title: Re: Controls and @SIZE
Post by: LarryMc on March 07, 2008, 08:08:34 PM
Oops,
Am I getting "Froggie" like Jerry.

It's not done with SENDMESSAGE.

It's done with GetWindowLongA(hwnd,GWL_STYLE)
and SetWindowLongA(hwnd,GWL_STYLE)

Adding @SIZE is straightforward.
Removing it involves a mask ( what's that I hear in the back of my mind, Paul saying,"You're making something hard that is simple")

I'll get back to you.

Larry
Title: Re: Controls and @SIZE
Post by: Ionic Wind Support Team on March 07, 2008, 11:32:37 PM
Yes, you are making it hard on yourself again.  See Users Guide->Alphabetical reference->ModifyStyle  ;)
Title: Re: Controls and @SIZE
Post by: LarryMc on March 08, 2008, 07:13:46 AM
I hate when you do that to me! ;)

Larry