HWND?hWndDlg = FindWindow(NULL, L"Volume");主窗口
HWND?hWndpic = GetDlgItem(hWndDlg, IDC_STATIC_image_show1?+ id);根據(jù)id獲得控件句GetClientRect(hWndpic, &rect);//實時獲取MFC窗口大小
rectWidth = rect.right - rect.left;
rectHeight = rect.bottom - rect.top;
CRect ?temprect(0, 0, rectWidth * 2, rectHeight * 2);
::SetWindowPos(hWndpic, NULL, 0, 0, temprect.Width(), temprect.Height(), SWP_NOZORDER |SWP_NOMOVE);
GetClientRect(hWndpic, &rect);//實時獲取MFC窗口大小