CWnd* pWnd=GetDlgItem(IDC_static); CRect rcPic; pWnd->GetClientRect(rcPic); rcPic.right+=100; // 加寬 rcPic.bottom+=100; // 加高 pWnd->ClientToScreen(rect); this->ScreenToClient(rect); pWnd->MoveWindow(rect);