home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / PJ8_3.ZIP / WINCEL.H < prev    next >
Text File  |  1990-01-26  |  2KB  |  47 lines

  1. /*
  2.  * Header file for the Windows cellular automaton demo
  3.  *
  4.  * Written by Bill Hall
  5.  * 3665  Benton Street, #66
  6.  * Santa Clara, CA 95051
  7.  *
  8.  */
  9.  
  10. /* This trick insures that globals are declared in only one place */
  11. #if !defined(EXTERN)
  12. #define EXTERN extern
  13. #endif
  14.  
  15. /* Resource string constants */
  16. #define IDS_APPNAME    100
  17. #define IDS_ICON    101
  18. #define IDS_TITLE    102
  19.  
  20. /* menu items */
  21. #define IDM_START    100
  22. #define IDM_PARAMS    101
  23. #define IDM_ABOUT    102
  24.  
  25. /* other manifests */
  26. #define UPDATECOUNT 5        /* number of computations between displays */
  27. #define MAXSTATES 14        /* a reasonable upper bound for states */
  28.  
  29. /* Global variables */
  30. EXTERN HWND hWndMain;        /* main window handle */
  31. EXTERN char szAppName[10];    /* name of the application */
  32. EXTERN char szIcon[5];        /* icon string */
  33. EXTERN HANDLE hInst;        /* instance handle */
  34. EXTERN int numstates;        /* number of states */
  35. EXTERN int maxstates;        /* maximum allowable states */
  36. EXTERN int maxiterates;        /* iterations between displays */
  37. EXTERN BOOL monochrome;        /* device is monochrome, fake color */
  38. EXTERN int update;        /* update counter */
  39.  
  40. /* Declarations which need to be known in all C source files */
  41. LONG FAR PASCAL MainWndProc(HWND,unsigned,WORD,LONG);
  42. BOOL FAR InitProgram(HANDLE, HANDLE, LPSTR, int);
  43. BOOL OpenDlgBox(HWND hWnd, FARPROC fpProc, WORD boxnum);
  44. BOOL FAR PASCAL AboutBoxProc(HWND hDlg,unsigned message,WORD wParam,LONG lParam);
  45. BOOL FAR PASCAL ParamBoxProc(HWND hDlg,unsigned message,WORD wParam,LONG lParam);
  46. void FAR WndInit(HWND hWnd);
  47.