|
-
Jan 31st, 2002, 04:19 PM
#1
GetWindowRect returns bogus values?
I'm using the GetWindowRect(WindowHandle, Points) API to
return the upperleft and lowerright corners of the window.
The screen I'm looking at is the IE, maixmized to fit the entire
screen.
The values being returned are -4,-4 (left,top) and 804,604
(right,bottom).
I'm then passing these values to a proprietary DLL upon which VB
gives me the message that the values are off the screen:
"Rectangle is out of Window"
When I reshape the points to be such that left and top are 0 and
bottom and right are correspondingly modified (goes to 800,600)
then the thing works fine.
Question: Why is GetWindowRect returning bogus values?
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
|