Getting the client's window position
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.
Not sure but try something like:
POINT clientPos;
clientPos.x = 0;
clientPos.y = 0;
ClientToScreen(hWnd, &clientPos);
POINT clientPos;
clientPos.x = 0;
clientPos.y = 0;
ClientToScreen(hWnd, &clientPos);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement