sinawear

导航

VC客户区坐标和屏幕坐标.

正确获得某子控件的客户区坐标:

CRect rect =hwnd->GetScreenRect();

ScreenToClient(rect);

而不是: GetClientRect(hwnd);

我认为该函数名字起的有误导,应该叫GetBounds(hwnd);

GetSize();

posted on 2012-11-06 14:54  sinawear  阅读(1303)  评论(0编辑  收藏  举报