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.