NotificationResult WelcomePropertyPageUI::_onNotify(LPNMHDR hdr, int /*iCtrlID*/) { if (hdr->code == NM_CLICK) { switch (hdr->idFrom) { case IDC_SYSLINK_ABOUT: { AboutBoxDlgUI aboutDlg; aboutDlg.Run(getHandle()); break; } case IDC_SYSLINK_SECTERMS: { ExtraSecTermsDlgUI extraSecTermsDlgUI; extraSecTermsDlgUI.SetSystemRestore(m_pSystemRestore); extraSecTermsDlgUI.Run(getHandle()); *m_pbShowSecDlg = true; break; } default: break; } } return ReturnFalse; }
int ApplicationSheetUI::_onSysCommand(HWND hWnd, WPARAM wParam, LPARAM lParam) { if (wParam == IDM_ABOUTBOX) { AboutBoxDlgUI aboutDlg; aboutDlg.Run(hWnd); return 0; } return 1; }