HWND hWndDlg = FindWindow(NULL, L"Volume");主窗口
HWND hWndpic = GetDlgItem(hWndDlg, IDC_STATIC_image_show1 + id);根据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窗口大小