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;
The GetClientRect function retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).
Bookmarks