BOOL CYourPropertyPageN::OnWizardFinish()
{
// return CPropertyPage::OnWizardFinish();
}
同样:
在void yourclass::OnOK
{
//CDialog::OnOK;
}
void yourclass::OnCancel
{
//CDialog::OnCancel;
}
{
// return CPropertyPage::OnWizardFinish();
}
同样:
在void yourclass::OnOK
{
//CDialog::OnOK;
}
void yourclass::OnCancel
{
//CDialog::OnCancel;
}
HMENU hSysMenu;hSysMenu = ::GetSystemMenu( GetSafeHwnd(), 0 );
RemoveMenu(hSysMenu, 1, MF_BYPOSITION);::SendMessage( GetSafeHwnd(), WM_NCPAINT, 1, 0 );
...
{
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon BOOL bResult = CPropertySheet::OnInitDialog();
CMenu *mnu=this->GetSystemMenu(FALSE);
mnu->EnableMenuItem(SC_CLOSE,MF_BYCOMMAND|MF_GRAYED);
return bResult;
}
{
// TODO: Add your specialized code here and/or call the base class
if(LOWORD(wParam)==IDOK ||LOWORD(wParam)==IDCANCEL)return true;
return CPropertySheet::OnCommand(wParam, lParam);
}