home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / mac / SiteBldr / AMOVIE / SDK / _SETUP / COMMON.Z / about.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-26  |  1.1 KB  |  40 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11.  
  12. // about.c
  13. // Simply handles the Help..About dialog box
  14.  
  15. #include "stdwin.h"
  16. #include "about.h"
  17.  
  18. #include "resource.h"
  19.  
  20. BOOL FAR PASCAL AboutDlgProc( HWND hwnd, UINT message, UINT wParam, LONG lParam ){
  21.  
  22.     switch( message ){
  23.         case WM_INITDIALOG:
  24.             return TRUE;
  25.  
  26.         case WM_COMMAND:
  27.             if( wParam==IDOK || wParam==IDCANCEL ){
  28.                 EndDialog( hwnd, 0);
  29.                 return TRUE;
  30.             }
  31.     }
  32.  
  33.     return FALSE;
  34. }
  35.  
  36. void DoAboutDialog( HINSTANCE hInstance, HANDLE hwnd ){
  37.  
  38.     DialogBox( hInstance, MAKEINTRESOURCE( IDD_ABOUTBOX ), hwnd, AboutDlgProc );
  39. }
  40.