Hi all..
I had a part of code like below..
CPropertySheet oPropSheet("Page", NULL, 0);
oPropSheet.m_psh.dwFlags |= PSH_NOAPPLYNOW;
oPropSheet.m_psh.dwFlags &= ~(PSH_HASHELP);
oPropSheet.AddPage(&oPropSettingCriteria);
oPropSheet.AddPage(&oPropAdvancedSetting);
if(oPropSheet.DoModal() == IDOK)
{
}
...
now I would like to hide or disable OK button..just left only CANCEL button there..
I tried using
oPropSheet.GetDlgItem(IDOK)->EnableWindow(FALSE);
but will have application error due to oPropSheet's m_hwnd = NULL..
Anyone can tell me how to do it..??
I able to hide APPLY NOW button..but no able to hide or disable OK button.
Thank you..
shizu..