在做属性表的时候,发现这样一个问题,属性表的最后一页是一个微调按钮和一个编辑框,我使用
BOOL CPage4::OnCommand(WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
SetModified(true);
return CPropertyPage::OnCommand(wParam, lParam);
}函数来使apply按钮有效,在第一个属性页的Onapply函数使apply按钮失效,
BOOL CPage1::OnApply()
{
// TODO: Add your specialized code here and/or call the base class
SetModified(false);
m_pParentWnd->SendMessage(WM_USERAPPLY);
return CPropertyPage::OnApply();
}
现在的问题是1,2,3,页的apply按钮按下后都失效,唯独第4页按下去候不失效,
请问谁知道为什么?
BOOL CPage4::OnCommand(WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
SetModified(true);
return CPropertyPage::OnCommand(wParam, lParam);
}函数来使apply按钮有效,在第一个属性页的Onapply函数使apply按钮失效,
BOOL CPage1::OnApply()
{
// TODO: Add your specialized code here and/or call the base class
SetModified(false);
m_pParentWnd->SendMessage(WM_USERAPPLY);
return CPropertyPage::OnApply();
}
现在的问题是1,2,3,页的apply按钮按下后都失效,唯独第4页按下去候不失效,
请问谁知道为什么?
ASSERT (pApplyButton);
//显示
pApplyButton->ShowWindow (SW_NORMAL);或者
//隐藏
pApplyButton->ShowWindow (SW_HIDE);