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.

35 lines
954 B

  1. //------------------------------------------------------------------------
  2. //
  3. // File: shell\themes\test\ctlperf\aboutdlg.h
  4. //
  5. // Contents: Interface of the CAboutDlg class.
  6. // Generated by the WTL app wizard.
  7. //
  8. // Classes: CAboutDlg
  9. //
  10. //------------------------------------------------------------------------
  11. #pragma once
  12. class CAboutDlg : public CDialogImpl<CAboutDlg>
  13. {
  14. public:
  15. enum { IDD = IDD_ABOUTBOX };
  16. BEGIN_MSG_MAP(CAboutDlg)
  17. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  18. COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
  19. COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
  20. END_MSG_MAP()
  21. LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
  22. {
  23. CenterWindow(GetParent());
  24. return TRUE;
  25. }
  26. LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
  27. {
  28. EndDialog(wID);
  29. return 0;
  30. }
  31. };