SM_CXBORDER
5
Width of a window border, in pixels. This is equivalent to the SM_CXEDGE value for windows with the 3-D look.
5
Width of a window border, in pixels. This is equivalent to the SM_CXEDGE value for windows with the 3-D look.
int cx=GetSystemMetrics(SM_CXBORDER)
GetWindowRect(hWnd, &rtWindow);
SendMessage(hWnd, WM_NCCALCSIZE, FALSE, (LPARAM)&rtClient); //rcClient用的是screen坐标int cxLeftBorder=rtClient.left-rtWindow.left;
...