home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / pmattrac / common.h next >
Encoding:
C/C++ Source or Header  |  1990-10-01  |  1.2 KB  |  49 lines

  1. #include <stdio.h>
  2. #include <process.h>
  3. #include <math.h>
  4. #include <stdlib.h>
  5.  
  6. #include "pmattrac.h"
  7.  
  8. #define INCL_WIN
  9. #define INCL_GPI
  10. #define INCL_DOSPROCESS
  11. #include <os2.h>
  12.  
  13.  
  14. typedef struct {
  15.     HPS hps, memhps;
  16.     short int exitflag;
  17.     short int xmax, ymax, cxmax, cymax;
  18.     unsigned long triggerdraw;
  19.     unsigned long doingdraw;
  20.     union {
  21.     double d;
  22.     int i;
  23.     long l;
  24.     }    pvalue[10];
  25. }   threadparms;
  26.  
  27. MRESULT EXPENTRY ClientWndProc(HWND, USHORT, MPARAM, MPARAM);
  28. MRESULT EXPENTRY DuffingDlgProc(HWND, USHORT, MPARAM, MPARAM);
  29. MRESULT EXPENTRY HenonDlgProc(HWND, USHORT, MPARAM, MPARAM);
  30. MRESULT EXPENTRY KAMDlgProc(HWND, USHORT, MPARAM, MPARAM);
  31.  
  32. void far draw_duffing(threadparms *);
  33. void far draw_henon(threadparms *);
  34. void far draw_KAM(threadparms *);
  35.  
  36. void setfloatscale(MATRIXLF *, double, double, double,
  37.     double, short, short, short, short);
  38. void setrunning(void);
  39. void setstop(void);
  40. void refresh(HPS, HPS, long, long, long, long);
  41.  
  42.  
  43. #define STACKSIZE 4096
  44. extern threadparms tp;        /* Active thread pointer */
  45. extern int threadstack[STACKSIZE];    /* Stack for thread */
  46. extern HAB hab;
  47. extern HBITMAP hbm;
  48. extern HWND hwndframe, hwndClient, hwndMenu;
  49.