VC客户区坐标和屏幕坐标.
正确获得某子控件的客户区坐标:
CRect rect =hwnd->GetScreenRect();
ScreenToClient(rect);
而不是: GetClientRect(hwnd);
我认为该函数名字起的有误导,应该叫GetBounds(hwnd);
GetSize();
正确获得某子控件的客户区坐标:
CRect rect =hwnd->GetScreenRect();
ScreenToClient(rect);
而不是: GetClientRect(hwnd);
我认为该函数名字起的有误导,应该叫GetBounds(hwnd);
GetSize();