|
-
Mar 21st, 2000, 11:20 PM
#1
Thread Starter
Addicted Member
GetWindowPos with hWnd? (PLS help!!)
Hi, I'm looking for the opposite of SetWindowPos.
Basically, with the hWnd of an object, I want the x,y coordinates. I cannot find any API functions that do this, but if there was one, shouldn't it be named GetWindowPos?
I've been looking for this for weeks. If anyone can help, I'd really appreciate it.
What I'm trying to do is find the x,y coordinates of a textbox running in another program so I can place a form next to it.
-
Mar 22nd, 2000, 12:38 AM
#2
Thread Starter
Addicted Member
Someone PLEASE help! Someone has to know how to do this!
-
Mar 22nd, 2000, 12:56 AM
#3
Try GetWindowRect which is used like:
Dim r As Rect
lRetVal = GetWindowRect(hwnd, r)
Where rect is defind as
Public Type Rect
left As Long
top As Long
right As Long
bottom As Long
End Type
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
|