|
-
March 3rd, 2009, 07:50 AM
#1
Coordinates of picture control
Hi everyone,
I am having problems with getting coordinates for
my picture control rectangle.
This is the code I have.....
CRect myPictureArea;
picture.GetClientRect(&myPictureArea);//picture is variable I assign top picture control
POINT p;
p=myPictureArea.TopLeft();
int x=p.x;
int y=p.y;
But both x and y are returning 0
Anyone has any suggestions on this please.
Thanks
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
|