What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Button in chat window Part 2

Button in chat window Part 2
Author: Message:
posseke
New Member
*


Posts: 14
41 / Male / –
Joined: Nov 2005
O.P. RE: Button in chat window Part 2
R is a structure

    Public Structure RECT
        Dim x As Long
        Dim y As Long
        Dim Width As Long
        Dim Height As Long
    End Structure

to hold all the window positioning data stuff :p

But guess what, this must be my lucky day, I solved this one to, seems that VBNET needs a different type of declaration of the API function:

Private Declare Function GetWindowRect Lib "user32" (ByVal hWnd As Integer, ByRef lpRect As RECT) As Integer

So when I use this one, and parse the handler I received from the IM window to Int32, I get the fabulous non erroneous result of a working button inside the IM window, at the exact same spot I wanted...

Isn't life great ^^

Thanks ;)
12-27-2005 04:12 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Button in chat window Part 2 - by posseke on 12-27-2005 at 01:19 PM
RE: Button in chat window Part 2 - by TheBlasphemer on 12-27-2005 at 01:50 PM
RE: Button in chat window Part 2 - by J-Thread on 12-27-2005 at 02:55 PM
RE: Button in chat window Part 2 - by posseke on 12-27-2005 at 02:58 PM
RE: Button in chat window Part 2 - by J-Thread on 12-27-2005 at 03:53 PM
RE: Button in chat window Part 2 - by posseke on 12-27-2005 at 04:12 PM
RE: Button in chat window Part 2 - by J-Thread on 12-27-2005 at 04:16 PM
RE: RE: Button in chat window Part 2 - by CookieRevised on 12-27-2005 at 04:23 PM
RE: Button in chat window Part 2 - by posseke on 12-27-2005 at 05:17 PM


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