home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <process.h>
- #include <math.h>
- #include <stdlib.h>
-
- #include "pmattrac.h"
-
- #define INCL_WIN
- #define INCL_GPI
- #define INCL_DOSPROCESS
- #include <os2.h>
-
-
- typedef struct {
- HPS hps, memhps;
- short int exitflag;
- short int xmax, ymax, cxmax, cymax;
- unsigned long triggerdraw;
- unsigned long doingdraw;
- union {
- double d;
- int i;
- long l;
- } pvalue[10];
- } threadparms;
-
- MRESULT EXPENTRY ClientWndProc(HWND, USHORT, MPARAM, MPARAM);
- MRESULT EXPENTRY DuffingDlgProc(HWND, USHORT, MPARAM, MPARAM);
- MRESULT EXPENTRY HenonDlgProc(HWND, USHORT, MPARAM, MPARAM);
- MRESULT EXPENTRY KAMDlgProc(HWND, USHORT, MPARAM, MPARAM);
-
- void far draw_duffing(threadparms *);
- void far draw_henon(threadparms *);
- void far draw_KAM(threadparms *);
-
- void setfloatscale(MATRIXLF *, double, double, double,
- double, short, short, short, short);
- void setrunning(void);
- void setstop(void);
- void refresh(HPS, HPS, long, long, long, long);
-
-
- #define STACKSIZE 4096
- extern threadparms tp; /* Active thread pointer */
- extern int threadstack[STACKSIZE]; /* Stack for thread */
- extern HAB hab;
- extern HBITMAP hbm;
- extern HWND hwndframe, hwndClient, hwndMenu;
-