Leaked source code of windows server 2003
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.

24 lines
608 B

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. class CAboutDlg : public CDialogImpl<CAboutDlg>
  3. {
  4. public:
  5. enum { IDD = IDD_ABOUTBOX };
  6. BEGIN_MSG_MAP(CAboutDlg)
  7. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  8. COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
  9. COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
  10. END_MSG_MAP()
  11. LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
  12. {
  13. CenterWindow(GetParent());
  14. return TRUE;
  15. }
  16. LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
  17. {
  18. EndDialog(wID);
  19. return 0;
  20. }
  21. };