建立了一个基于对话框的视图类,现在只希望显示出这个对话框的右半部分,并且是视图一出现的时候就是这种效果,而不能利用交互手段。  我尝试了以下方法:
1. 在 CMainFrame 里的Oncrate()函数里,得到该视图类的指针m_pPartView。然后添加了
        CRect rc;
       m_pPartView->GetWindowRect(&rc);
       m_pPartView->MoveWindow(0-rc.Width(),0, rc.Width()+rc.Width(),rc.Height(), TRUE);   结果毫无反应!2.  在 CMainFrame 里的Oncrate()里,
         CRect rc;
  m_pPartView->GetWindowRect(&rc);
         ::SetWindowPos(this->m_pPartView->m_hWnd,HWND_TOP,rc.Width(),rc.Height(),rc.Width(),rc.Height(),SWP_SHOWWINDOW);
   结果还是没反应! 请各位大侠指教!