What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] WM_SIZE

[?] WM_SIZE
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. [?] WM_SIZE
Window messages.. Quite easy, apart from one: WM_SIZE.

How is the lParam supposed to specify both the width and the height of a window's client area? (I've probably missed something)
08-04-2008 07:31 PM
Profile PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: [?] WM_SIZE
lParam
    The low-order word of lParam specifies the new width of the client area.
    The high-order word of lParam specifies the new height of the client area.

So,
width = lParam & 0xffff;
height = (lParam >> 16) & 0xffff; // or you can use lParam >>> 16;

lParam is dword (double word), of length of 4-byte. A word, in x86 terms, is 2-byte. And little-endian.

This post was edited on 08-04-2008 at 07:46 PM by Mnjul.
08-04-2008 07:41 PM
Profile PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [?] WM_SIZE
That'll do it, thanQ :D
08-04-2008 07:58 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On