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:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Button in chat window Part 2
quote:
Originally posted by posseke
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
It doesn't need a different declaration than otherwise VB.NET is no different than other languages in that... it needs the proper declaration though ;)

quote:
Originally posted by posseke
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...
Because GetWindowRect returns a boolean, not a pointer or handle like SetParent or whatever.

code:
From the MSDN Library: GetWindowRect

Syntax:
BOOL GetWindowRect(
    HWND hWnd,
    LPRECT lpRect
);
code:
From the MSDN Library: SetParent

Syntax:
HWND SetParent(
    HWND hWndChild,
    HWND hWndNewParent
);

For working with API's, always refer to the MSDN library.

;)

This post was edited on 12-27-2005 at 04:26 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-27-2005 04:23 PM
Profile PM 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