如何,初始化CPropertyPages和之间CPropertyPages相互作用:您好,
我目前有试图使用属性表和属性页代码标签控制的问题。我对我工作的第一个版本是一个对话框,现在由于许多组件,我想他们,而不是在标签
我要感谢这里的教程没有任何问题能够得到选项卡对话框。然而,它似乎像标签(IDD_PROPPAGE_LARGE)没有被用来初始化一个正常的对话框的OnInitDialog()方法。我尝试添加属性页添加到表之前,我的代码,但它给出了一个错误,
组件是空的。
[code]
//
// previously:
BOOL CDialogTest1::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
CEdit *pEdit1 = (CEdit*) GetDlgItem(IDC_EDIT1); // unable to get CWnd here
pBtn1->SetWindowText(CString("XXX"));
//init flags
mFlaga = false;
mFlagb = false;
mFlagc = false;
mMsgLen = 0;
// .........
[/code]
第二个问题,我面对的是,当一个组件,例如在选项卡对话框的一个按钮被按下时,它会更新另一个选项卡对话框的MFC组件,例如清单控制。是可能的吗?