/*------------------------------------------------ Dialog Procedure for the "Format" page --------------------------------------------------*/ INT_PTR CALLBACK PageFormatProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch(message) { case WM_INITDIALOG: OnInit(hDlg); return TRUE; case WM_COMMAND: { WORD id, code; id = LOWORD(wParam); code = HIWORD(wParam); switch(id) { case IDC_LOCALE: if(code == CBN_SELCHANGE) OnLocale(hDlg); break; case IDC_FORMAT: #if TC_ENABLE_SYSINFO case IDC_SYSII: #endif if(code == EN_CHANGE) SendPSChanged(hDlg); break; case IDC_CUSTOM: OnCustom(hDlg, TRUE); break; case IDC_12HOUR: On12Hour(hDlg); break; case IDC_FORMATDETAIL: OnDetail(hDlg); break; } if(IDC_YEAR4 <= id && id <= IDC_AMPM) OnFormatCheck(hDlg, id); return TRUE; } case WM_NOTIFY: switch(((NMHDR *)lParam)->code) { case PSN_APPLY: OnApply(hDlg); break; case PSN_HELP: MyHelp(GetParent(hDlg), "Format"); break; } return TRUE; } return FALSE; }
void CDlgTeikei::OnBtDetail10() { // TODO: この位置にコントロール通知ハンドラ用のコードを追加してください OnDetail(9); }