| #pragma once |
| |
| class CAboutDlg : public CDialogImpl<CAboutDlg> |
| { |
| public: |
| enum { IDD = IDD_ABOUTBOX }; |
| |
| BEGIN_MSG_MAP(CAboutDlg) |
| MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) |
| COMMAND_ID_HANDLER(IDOK, OnCloseCmd) |
| COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) |
| END_MSG_MAP() |
| |
| // Handler prototypes (uncomment arguments if needed): |
| // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) |
| // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) |
| // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) |
| |
| LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) |
| { |
| CenterWindow(GetParent()); |
| SetWindowText(_T("About WinTedplay 1.2")); |
| return TRUE; |
| } |
| |
| LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) |
| { |
| EndDialog(wID); |
| return 0; |
| } |
| }; |