同上

解决方案 »

  1.   

    CButton m_but;
    m_but.MoveWindow("左上角x","左上角y","宽度","长度",TRUE);
    m_but.SetWindowPos(NULL,"左上角x","左上角y","宽度","长度",SWP_NOZORDER);可以是主窗口或子窗口(包括各种控件窗口)^_^
      

  2.   

    void CSearchFileDlg::OnSize(UINT nType, int cx, int cy) 
    {
    CDialog::OnSize(nType, cx, cy);
    m_tree.MoveWindow(0,0,cx,cy,TRUE);
     
    }
    怎么不行啊
      

  3.   

    MoveWindow()
    用楼上的方法好
      

  4.   

    我的软件中的一段...void CUserReportDlg::OnSize(UINT nType, int cx, int cy) 
    {
    CDialog::OnSize(nType, cx, cy);

    if(::IsWindow(m_ReportCtrl.m_hWnd)){
    CRect rect;
    GetClientRect(rect);
    m_ReportCtrl.SetWindowPos (NULL,
    rect.left, 
    rect.top, 
    rect.right, 
    rect.bottom,
    SWP_NOZORDER | SWP_NOACTIVATE);
    }
    }
      

  5.   

    没有这样的函数。
    只能自己手动的修改控件的大小。如SetWindowPos();
    www.codeproject.com上有CSizabeDlg类的例子,
    很方便。