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!!!
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!!!