是OnApply() 一个msdn的例子,加Help的,估计加Apply也差不多吧 CPropertySheet sheet("Simple PropertySheet");// Change the settings of the two pages to enable property sheet's // Help button when the page is active. Both CStylePage and // CColorPage are CPropertyPage-derived classes. CStylePage style; style.m_psp.dwFlags |= PSP_HASHELP;CColorPage color; color.m_psp.dwFlags |= PSP_HASHELP;sheet.AddPage(&style); sheet.AddPage(&color);// Display a modal CPropertySheet dialog. sheet.DoModal();
{
m_bFlag = TRUE;
SetModified();
}
一个msdn的例子,加Help的,估计加Apply也差不多吧
CPropertySheet sheet("Simple PropertySheet");// Change the settings of the two pages to enable property sheet's
// Help button when the page is active. Both CStylePage and
// CColorPage are CPropertyPage-derived classes.
CStylePage style;
style.m_psp.dwFlags |= PSP_HASHELP;CColorPage color;
color.m_psp.dwFlags |= PSP_HASHELP;sheet.AddPage(&style);
sheet.AddPage(&color);// Display a modal CPropertySheet dialog.
sheet.DoModal();