Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
971 B

  1. // aboutdlg.h : interface of the CAboutDlg class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_ABOUTDLG_H__D257AE23_8649_4EA5_8E06_7D02205AEA28__INCLUDED_)
  5. #define AFX_ABOUTDLG_H__D257AE23_8649_4EA5_8E06_7D02205AEA28__INCLUDED_
  6. class CAboutDlg : public CDialogImpl<CAboutDlg>
  7. {
  8. public:
  9. enum { IDD = IDD_ABOUTBOX };
  10. BEGIN_MSG_MAP(CAboutDlg)
  11. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  12. COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
  13. COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
  14. END_MSG_MAP()
  15. LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
  16. {
  17. CenterWindow(GetParent());
  18. return TRUE;
  19. }
  20. LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
  21. {
  22. EndDialog(wID);
  23. return 0;
  24. }
  25. };
  26. #endif // !defined(AFX_ABOUTDLG_H__D257AE23_8649_4EA5_8E06_7D02205AEA28__INCLUDED_)