我吧对话框当窗体用,怎样实现对话框初始时的最大化?

解决方案 »

  1.   

    在程序对话框初始化时,有一个设置窗口属性的步骤,在此将属性cs|=WS_MAXIMIZE;即可
      

  2.   

    先设置style为可变size,再用Sendmessage(dlg.m_hWnd,...,...,...);
      

  3.   

    It's very simple!
    WM_INITDIALOG message!
    The example maybe:
    BOOL CAboutDlg::OnInitDialog() 
    {
    CDialog::OnInitDialog();

    // TODO: Add extra initialization here
    //Just add only one code line in here ,Everything is OK!
    this->ShowWindow(SW_SHOWMAXIMIZED);
    return TRUE;  // return TRUE unless you set the focus to a control
                  // EXCEPTION: OCX Property Pages should return FALSE
    }
    ---------------------------
    Just try!!!