home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / fonts / cw_src / altexe / about.c next >
Encoding:
C/C++ Source or Header  |  1995-05-19  |  647 b   |  35 lines

  1. #define        NOVIRTUALKEYCODES
  2. #include    "c:\windev\include\windows.h"
  3. #include    "hello.h"
  4.  
  5. extern    HANDLE    hInst;
  6. extern    HWND    hMainWnd;
  7.  
  8. BOOL FAR PASCAL    About (HWND, unsigned, WORD, LONG);
  9.  
  10. void
  11. DoAbout        ()
  12. {
  13.     FARPROC    lpAbout;
  14.  
  15.     lpAbout= MakeProcInstance (About, hInst);
  16.     DialogBox(hInst, "About", hMainWnd, lpAbout);
  17.     FreeProcInstance(lpAbout);
  18. }
  19.  
  20. BOOL FAR PASCAL
  21. About        (hDlg, message, wParam, lParam)
  22. HWND        hDlg;
  23. unsigned    message;
  24. WORD        wParam;
  25. LONG        lParam;
  26. {
  27.     if (message == WM_COMMAND) {
  28.         EndDialog (hDlg, TRUE);
  29.         return TRUE;
  30.     } else if (message == WM_INITDIALOG) {
  31.         return TRUE;
  32.     } else {
  33.         return FALSE;
  34.     }
  35. }