Getting the client's window position

Started by
1 comment, last by Gumgo 17 years ago
I'm confused on how to get the position of the client part of the window on the screen. GetWindowRect() can get the window position but that includes the borders and everything. GetClientRect() seems to just give the dimensions of the client window. So how can I get where the client part actually starts? Thanks.
Advertisement
Not sure but try something like:

POINT clientPos;
clientPos.x = 0;
clientPos.y = 0;
ClientToScreen(hWnd, &clientPos);
Thanks, that's just the function I needed.

This topic is closed to new replies.

Advertisement