的位置和大小 long lOldStyle = ::GetWindowLong(hFig, GWL_STYLE); long lNewStyle = lOldStyle &; (~WS_OVERLAPPEDWINDOW) | WS_CHILD; ::SetWindowLong(hFig, GWL_STYLE, lNewStyle); // 获取绘图区域的位置和大小 RECT PlotRect; CWnd *pWndPlotArea = GetDlgItem(IDC_PLOT); pWndPlotArea->GetWindowRect(&;lotRect); ScreenToClient(&;lotRect); // 设置 Figure 窗口为对话框窗口的子窗口并调整其位置 CWnd *pWndFig = CWnd::FromHandle(hFig); pWndFig->SetParent(this); pWndFig->MoveWindow(&;lotRect); pWndFig->ShowWindow(SW_SHOW); // MakeMatlabFiguresVisible(); // rotate3d(m_mwhAxis,"on"); // 刷新窗口 // mlfDrawnow(NULL); }
2.