May 06, 2024, 01:19:56 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Controls and @SIZE

Started by LarryMc, March 07, 2008, 07:38:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Ionic Wind Support Team

Yes, you are making it hard on yourself again.  See Users Guide->Alphabetical reference->ModifyStyle  ;)
Ionic Wind Support Team

LarryMc

I hate when you do that to me! ;)

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library