BOOL CConnectionSetup::OnInitDialog() { CDialogEx::OnInitDialog(); OnInitUI(); return TRUE; }
BOOL CAddDlg::OnInitDialog() { CDialog::OnInitDialog(); // TODO: 在此添加额外的初始化 OnInitUI(); if (m_bUpdate == TRUE) { m_ComboBox.SetCurSel(0); SetDlgItemText(IDC_EDIT1,m_szPath); SetWindowPos(NULL,0,0,IDI_DLG_WITH,125,SWP_NOMOVE);//设置窗口的初始大小为750*555 }else { SetWindowPos(NULL,0,0,IDI_DLG_WITH,55,SWP_NOMOVE);//设置窗口的初始大小为750*555 } return TRUE; // return TRUE unless you set the focus to a control // 异常: OCX 属性页应返回 FALSE }