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.

53 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: about.cxx
  7. //
  8. // Contents: implementation for a simple about dialog box
  9. //
  10. // Classes: CAbout
  11. //
  12. // Functions:
  13. //
  14. // History: 6-08-94 stevebl Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #include <windows.h>
  18. #include "about.h"
  19. //+---------------------------------------------------------------------------
  20. //
  21. // Member: CAbout::DialogProc
  22. //
  23. // Synopsis: dialog proc for the About dialog box
  24. //
  25. // Arguments: [uMsg] - message
  26. // [wParam] - first message parameter
  27. // [lParam] - second message parameter
  28. //
  29. // History: 4-12-94 stevebl Created for MFract
  30. // 6-08-94 stevebl Stolen from MFract
  31. //
  32. //----------------------------------------------------------------------------
  33. BOOL CAbout::DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
  34. {
  35. switch (uMsg)
  36. {
  37. case WM_INITDIALOG:
  38. return(TRUE);
  39. case WM_COMMAND:
  40. if (LOWORD(wParam) == IDOK
  41. || LOWORD(wParam) == IDCANCEL)
  42. {
  43. EndDialog(hwndDlg, TRUE);
  44. return(TRUE);
  45. }
  46. }
  47. return(FALSE);
  48. }