|
-
Feb 3rd, 2000, 03:56 AM
#1
Thread Starter
New Member
I have a problem for the more advanced users out there... perhaps someone knows the answer.
I am trying to find the co-ordinates for a window other than my application. The article from MSDN at http://msdn.microsoft.com/library/ps...ndows_4f73.htm tells me I can use 'GetWindowInfo' to find this, but it returns a pointer to a structure, and I need to read data from the sub-structure of that structure... is it possible? Can anyone provide me with a snippet of code that, given a hWnd (Window Handle) will tell me the x,y co-ordinates of the window... also, can anyone find a way of telling me if the window has focus.
-----
Even harder: can I sub-class another window? I want to know whenever the window I have the hWnd for loses focus, or changes its size without having to deal with any event. Is this possible?
Anyone succeeding in solving either of these two problems will have my respect forever :-)
JamesW
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|