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.

45 lines
721 B

  1. /*
  2. about.c
  3. show the apps about box
  4. */
  5. #include <windows.h>
  6. #include "PlaySnd.h"
  7. void About(
  8. HWND hWnd)
  9. {
  10. /* show the about box */
  11. DialogBox(ghModule, MAKEINTRESOURCE(IDD_ABOUT) //"About"
  12. , hWnd , (DLGPROC)AboutDlgProc);
  13. }
  14. LONG AboutDlgProc(HWND hDlg, UINT msg, DWORD wParam, LONG lParam)
  15. {
  16. UNREFERENCED_PARAMETER(lParam);
  17. switch (msg) {
  18. case WM_INITDIALOG:
  19. break;
  20. case WM_COMMAND:
  21. switch (wParam) {
  22. case IDOK:
  23. EndDialog(hDlg, TRUE);
  24. break;
  25. default:
  26. break;
  27. }
  28. break;
  29. default:
  30. return FALSE; // say we didn't handle it
  31. break;
  32. }
  33. return TRUE; // say we handled it
  34. }