Hello,
How can I find the coordinates of the ClientRect for a window relative to its WindowRect. Is there any methods which is real simple to call at Run time, than storing these values at create.
Santhosh
Printable View
Hello,
How can I find the coordinates of the ClientRect for a window relative to its WindowRect. Is there any methods which is real simple to call at Run time, than storing these values at create.
Santhosh
Call CWnd::ClientToScreen() passing the client rect. This will give you the ClientRect co-ordinates relative to the screen top left (the WindowRect is also relative to screen top left). Then subtract the WindowRect from the ClientRect to give the relative offset of the ClientRect.
Dave Lorde