摘要: 第一步:OnInitDialog里保存对话框及其所有子窗体的Rect区域 1 CRect rect; 2 GetWindowRect(&rect); 3 listRect.AddTail(rect);//对话框的区域 4 5 CWnd* pWnd = GetWindow(GW_CHILD);//获取子窗体 6 while(pWnd) 7 { 8 pWnd->GetWindowRect(rect);//子窗体的区域 9 m_listRect.AddTail(rect); //CList m_listRect成员变量10 pWnd = ... 阅读全文