Exemple #1
0
//创建函数
BOOL CDlgBuyProperty::OnInitDialog()
{
	__super::OnInitDialog();

	//更新状态
	UpdateCtrlStatus();

	//输入限制
	m_edNickName.LimitText(LEN_NICKNAME-1);

	//支付方式
	((CButton *)GetDlgItem(IDC_PAY_BY_INSURE))->SetCheck(BST_CHECKED);

	return FALSE;
}
void CDatabaseSettingDlg::OnShowWindow(BOOL bShow, UINT nStatus)
{
    CDialog::OnShowWindow(bShow, nStatus);

    if(bShow) UpdateCtrlStatus();
}