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.

42 lines
792 B

  1. /****************************************************************************
  2. *
  3. * about.c
  4. *
  5. * Copyright (c) 1991 Microsoft Corporation. All Rights Reserved.
  6. *
  7. ***************************************************************************/
  8. #include <windows.h>
  9. #include <mmsystem.h>
  10. #include "sbtest.h"
  11. void About(HWND hWnd)
  12. {
  13. FARPROC fpDlg;
  14. // show the about box
  15. fpDlg = MakeProcInstance(AboutDlgProc, ghInst);
  16. DialogBox(ghInst, "About", hWnd, fpDlg);
  17. FreeProcInstance(fpDlg);
  18. }
  19. int FAR PASCAL AboutDlgProc(HWND hDlg, unsigned msg, UINT wParam, LONG lParam)
  20. {
  21. switch (msg) {
  22. case WM_INITDIALOG:
  23. break;
  24. case WM_COMMAND:
  25. EndDialog(hDlg, TRUE);
  26. break;
  27. default:
  28. return FALSE;
  29. break;
  30. }
  31. return TRUE;
  32. }