2
/* from GNUPLOT - win/wgnuplib.h */
4
* Copyright (C) 1992 Russell Lang
6
* Permission to use, copy, and distribute this software and its
7
* documentation for any purpose with or without fee is hereby granted,
8
* provided that the above copyright notice appear in all copies and
9
* that both that copyright notice and this permission notice appear
10
* in supporting documentation.
12
* Permission to modify the software is granted, but not the right to
13
* distribute the modified code. Modifications are to be distributed
14
* as patches to released version.
16
* This software is provided "as is" without express or implied warranty.
20
* Modified for Scilab (1997)
21
* Jean-Philippe Chancelier
29
/** XXXXX #define EXPORT extern "C" __declspec (dllexport) **/
30
#define EXPORT __declspec (dllexport)
35
/** Get reference to functions if DLL **/
37
#define MyGetProcAddress(strProc,Proc) GetProcAddress(hdllInstance,strProc);
39
#define MyGetProcAddress(strProc,Proc) Proc
42
#define WSCILABVERSION "1.0 1996"
44
EXPORT BOOL WINAPI CheckWScilabVersion(LPSTR str);
46
/*****************************************
47
* wprinter.c - windows printer routines
48
*****************************************/
50
typedef struct tagPRINT {
57
struct tagPRINT *next;
60
typedef PRINT * LPPRINT;
62
/*****************************************
63
* wpause.c - pause window structure *
64
*****************************************/
68
HINSTANCE hInstance; /* required */
69
HINSTANCE hPrevInstance; /* required */
70
LPSTR Title; /* required */
71
LPSTR Message; /* required */
72
POINT Origin; /* optional */
73
HWND hWndParent; /* optional */
82
WNDPROC lpfnPauseButtonProc;
86
EXPORT int WINAPI PauseBox(LPPW lppw);
88
/*****************************************
89
* wmenu.c - menu structure *
90
*****************************************/
96
LPSTR szMenuName; /* required */
106
HWND hButton[BUTTONMAX];
107
int hButtonID[BUTTONMAX];
108
WNDPROC lpfnMenuButtonProc;
109
WNDPROC lpfnButtonProc[BUTTONMAX];
113
/*****************************************
114
* wtext.c text window structure
115
* If an optional item is not specified it must be zero
116
*****************************************/
118
#define SCI_DEFAULT_CHARSET ANSI_CHARSET
120
#define MAXFONTNAME 80
123
LPPRINT lpr; /* must be first */
124
HINSTANCE hInstance; /* required */
125
HINSTANCE hPrevInstance; /* required */
126
LPSTR Title; /* required */
127
LPMW lpmw; /* optional */
128
POINT ScreenSize; /* optional */
129
unsigned int KeyBufSize; /* optional */
130
LPSTR IniFile; /* optional */
131
LPSTR IniSection; /* optional */
132
LPSTR DragPre; /* optional */
133
LPSTR DragPost; /* optional */
134
int nCmdShow; /* optional */
135
FARPROC shutdown; /* optional */
136
HICON hIcon; /* optional */
137
LPSTR AboutText; /* optional */
152
HBRUSH hbrBackground;
153
char fontname[MAXFONTNAME]; /* font name */
154
int fontsize; /* font size in pts */
172
/*****************************************
173
* wtext.c - Text Window *
174
*****************************************/
176
EXPORT void WINAPI TextMessage(void);
177
EXPORT void TextMessage2(void);
178
EXPORT void TextMessage1(int);
179
EXPORT int WINAPI TextInit(LPTW lptw);
180
EXPORT void WINAPI TextClose(LPTW lptw);
181
EXPORT void WINAPI TextToCursor(LPTW lptw);
182
EXPORT int WINAPI TextKBHit(LPTW);
183
EXPORT int WINAPI TextGetCh(LPTW);
184
EXPORT int WINAPI TextGetChE(LPTW);
185
EXPORT LPSTR WINAPI TextGetS(LPTW lptw, LPSTR str, unsigned int size);
186
EXPORT int WINAPI TextPutCh(LPTW, BYTE);
187
EXPORT int WINAPI TextPutS(LPTW lptw, LPSTR str);
188
EXPORT void WINAPI TextGotoXY(LPTW lptw, int x, int y);
189
EXPORT int WINAPI TextWhereX(LPTW lptw);
190
EXPORT int WINAPI TextWhereY(LPTW lptw);
191
EXPORT void WINAPI TextCursorHeight(LPTW lptw, int height);
192
EXPORT void WINAPI TextClearEOL(LPTW lptw);
193
EXPORT void WINAPI TextClearEOS(LPTW lptw);
194
EXPORT void WINAPI TextInsertLine(LPTW lptw);
195
EXPORT void WINAPI TextDeleteLine(LPTW lptw);
196
EXPORT void WINAPI TextScrollReverse(LPTW lptw);
197
EXPORT void WINAPI TextAttr(LPTW lptw, BYTE attr);
198
EXPORT void WINAPI AboutBox(HWND hwnd, LPSTR str);
200
/*****************************************
201
* wgraph.c - graphics window *
202
*****************************************/
204
typedef struct tagGW {
205
LPPRINT lpr; /* must be first */
206
HINSTANCE hInstance; /* required */
207
HINSTANCE hPrevInstance; /* required */
208
LPSTR Title; /* required */
209
int xmax; /* required */
210
int ymax; /* required */
211
LPTW lptw; /* optional */ /* associated text window */
212
POINT Origin; /* optional */ /* origin of graph window */
213
POINT Size; /* optional */ /* size of graph window */
214
LPSTR IniFile; /* optional */
215
LPSTR IniSection; /* optional */
216
/** HWND hWndGraph;**/ /* window handle */
217
HMENU hPopMenu; /* popup menu */
218
BOOL resized; /* has graph window been resized? */
219
BOOL graphtotop; /* bring graph window to top after every plot? */
220
BOOL locked; /* locked if being written */
221
int ButtonHeight; /* */
222
LPSTR szMenuName; /* required */
227
#define WINFONTSIZE 10
228
#define WIN30FONT "Courier"
229
#define WINFONT "Arial"
241
/*************************/