home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1998 November / VPR9811A.BIN / VPR_DATA / Program / Ce / About.c next >
C/C++ Source or Header  |  1998-09-04  |  556b  |  34 lines

  1. //
  2. //    About.c
  3. //
  4. #include    <windows.h>
  5. #include    "resource.h"
  6.  
  7. //----------------------------------------------------------------------------
  8. // the About Proc
  9. LRESULT CALLBACK AboutProc(
  10.     HWND    hDlg,
  11.     UINT    uMessage,
  12.     WPARAM    wParam,
  13.     LPARAM    lParam)
  14. //----------------------------------------------------------------------------
  15. {
  16.  
  17.     switch (uMessage)
  18.     {
  19.     case WM_INITDIALOG:
  20.         return TRUE;
  21.  
  22.     case WM_COMMAND:
  23.         switch(wParam)
  24.         {
  25.         case IDOK:            // OK
  26.             EndDialog(hDlg, TRUE);
  27.             return TRUE;
  28.         }
  29.         break;
  30.     }
  31.  
  32.     return FALSE;
  33. }
  34.