WM_SIZE ??

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

Morning... :wink:

Looks like PB doesnt send the WM_SIZE message
in the EventID = WaitWindowEvent()
How do i know if the Window size is changed ??

I need to update a control if the window size
is changed.
Not after a complete size change (looks ugly),
but every time the size changes ("on the fly").

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

WM_SIZE is passed directly to the Windows without go trough the thread queue. This means you have to use the WindowCallBack to do it.. See the StatusBar.pb example to see what I mean.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

Hello Fred !!

I know about the WindowCallBack() function.
As stated in the docs, its an advanced
command and not for beginners.

I want to make my next Library easy
to use for beginners, but thats not easy to do.
Its easy to write it with plain Assembly,
but not so easy to make a "easy to use"
BASIC command out of this stuff.

Well, i´ll see how i can manage it.
Complicated stuff... anyway, i should get some sleep... :wink:

cya,
...Danilo

(registered PureBasic user)
Post Reply