如题!

解决方案 »

  1.   

    首先 得到该对话框的句柄,方法很多,比如HWND hwnd = FindWindow(类名,标题名);然后要改变标题 ::SetWindowText(hwnd ,"我变 我变 我变 变 变");
    大小           ::MoveWindow(hwnd,0,0,800,600,TRUE);
      

  2.   

    此外要改变对话框的大小,还可以使用SetWindowPos,方法和MoveWindow()差不多。
    自己研究吧
      

  3.   

    由于对话框(或者非模态对话框)没有弹出时,不能设置他的控件的值,当然包括他的标题。
    //Dlg1.cpp
    CDlg1::OnButton1()
    {
       CDlg2 dlg;
       dlg.m_str = "new title";
       dlg.DoModal();
    }//Dlg2.h
    public;
        CString m_str;//Dlg2.cpp
    CDlg2::OnInitDialog()
    {
       SetWindowText(m_str);
    }
      

  4.   

    //Dlg1.cpp
    CDlg1::OnButton1()
    {
       CDlg2 dlg;
       dlg.m_str = "new title";
       dlg.m_str = "11";
       dlg.rect.left = 0;
       dlg.rect.top = 300;
       dlg.rect.right = 500;
       dlg.rect.bottom = 600;   dlg.DoModal();
    }//Dlg2.h
    public;
        CString m_str;
        CRect   rect;//Dlg2.cpp
    CDlg2::OnInitDialog()
    {
       SetWindowText(m_str);
       MoveWindow(&rect);
       CenterWindow();
    }