vc坐标转化
CRect *rect=(CRect*)new CRect;
CWnd *wnd=(CWnd*)GetDlgItem(IDC_EDIT1+i-1);
CString str;
wnd->GetWindowRect(rect);//获得整个窗口的范围矩形,窗口的边框、标题栏、滚动条及菜单等都在这个矩形内
// CPoint a[2]={rect->TopLeft(),rect->BottomRight()};
// ::MapWindowPoints();
wnd->MapWindowPoints(this->m_hWnd,rect);
str.Format("%d,%d,%d,%d",rect->top,rect->left,rect->bottom,rect->right);
delete rect;
MessageBox(str);
有点问题 ,请指导
[ 本帖最后由 sunyue852762 于 2007-4-8 09:53 编辑 ]