One. Controls
CRect rect; // rectangular
m_pic.GetWindowRect (rect); // get information control rectangular
m_pic.MoveWindow (0, 0, SavedImage.cols, SavedImage.rows); // set control positions (relative to the client area), the size of the
two. window
. 1 the CWnd * = pWnd1 the GetDlgItem (IDD_MFC_OPENCV_DIALOG) ; // get a handle
2 the SetWindowPos (pWnd1, X, Y, SavedImage.cols + 15 , + SavedImage.rows 58 , SWP_SHOWWINDOW); // set the window position, size
GetWindowRect (rect); // get window position, size