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

RECT type ?
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: RECT type ?
to write to it (the second param of WriteDWORD is the value)
code:
var RECT = Interop.Allocate(16); //long = 4 so size = 4 * 4
RECT.WriteDWORD(0, 0); //left
RECT.WriteDWORD(4, 0); //Top
RECT.WriteDWORD(8, 0); //Right
RECT.WriteDWORD(12, 0); //Bottom


to read it

code:

var RECT = Interop.Allocate(16); //long = 4 so size = 4 * 4
//pass to some api function where it changes it

var left = RECT.ReadDWORD(0); //left
var top = RECT.ReadDWORD(4); //Top
var right = RECT.ReadDWORD(8); //Right
var bottom = RECT.ReadDWORD(12); //Bottom



This post was edited on 12-27-2006 at 06:39 AM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
12-27-2006 06:32 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
RECT type ? - by felipEx on 12-27-2006 at 06:26 AM
RE: RECT type ? - by -dt- on 12-27-2006 at 06:32 AM
RE: RECT type ? - by felipEx on 12-27-2006 at 06:57 AM
RE: RECT type ? - by felipEx on 12-27-2006 at 09:26 PM
RE: RECT type ? - by matty on 12-27-2006 at 09:32 PM
RE: RECT type ? - by felipEx on 12-27-2006 at 09:41 PM
RE: RECT type ? - by Ash_ on 12-28-2006 at 11:25 AM
RE: RECT type ? - by felipEx on 12-28-2006 at 11:35 AM
RE: RE: RECT type ? - by Ash_ on 12-28-2006 at 11:39 AM
RE: RECT type ? - by felipEx on 12-28-2006 at 11:42 AM


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