]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - winstuff.h
02f4c90900edae4215c3875ce2706445e5e8d560
[PuTTY.git] / winstuff.h
1 /*
2  * winstuff.h: Windows-specific inter-module stuff.
3  */
4
5 /*
6  * Global variables. Most modules declare these `extern', but
7  * window.c will do `#define PUTTY_DO_GLOBALS' before including this
8  * module, and so will get them properly defined.
9  */
10 #ifdef PUTTY_DO_GLOBALS
11 #define GLOBAL
12 #else
13 #define GLOBAL extern
14 #endif
15
16 GLOBAL HINSTANCE hinst;
17
18 /*
19  * Exports from winctrls.c.
20  */
21
22 struct ctlpos {
23     HWND hwnd;
24     WPARAM font;
25     int dlu4inpix;
26     int ypos, width;
27     int xoff;
28     int boxystart, boxid, boxtextid;
29     char *boxtext;
30 };
31
32 void ctlposinit(struct ctlpos *cp, HWND hwnd,
33                 int leftborder, int rightborder, int topborder);
34 void doctl(struct ctlpos *cp, RECT r,
35            char *wclass, int wstyle, int exstyle,
36            char *wtext, int wid);
37 void bartitle(struct ctlpos *cp, char *name, int id);
38 void beginbox(struct ctlpos *cp, char *name, int idbox, int idtext);
39 void endbox(struct ctlpos *cp);
40 void multiedit(struct ctlpos *cp, ...);
41 void radioline(struct ctlpos *cp,
42                char *text, int id, int nacross, ...);
43 void radiobig(struct ctlpos *cp, char *text, int id, ...);
44 void checkbox(struct ctlpos *cp, char *text, int id);
45 void staticbtn(struct ctlpos *cp, char *stext, int sid,
46                char *btext, int bid);
47 void staticedit(struct ctlpos *cp, char *stext,
48                 int sid, int eid, int percentedit);
49 void ersatztab(struct ctlpos *cp, char *stext, int sid,
50                int lid, int s2id);
51 void editbutton(struct ctlpos *cp, char *stext, int sid,
52                 int eid, char *btext, int bid);
53 void sesssaver(struct ctlpos *cp, char *text,
54                int staticid, int editid, int listid, ...);
55 void envsetter(struct ctlpos *cp, char *stext, int sid,
56                char *e1stext, int e1sid, int e1id,
57                char *e2stext, int e2sid, int e2id,
58                int listid,
59                char *b1text, int b1id, char *b2text, int b2id);
60 void charclass(struct ctlpos *cp, char *stext, int sid, int listid,
61                char *btext, int bid, int eid, char *s2text, int s2id);
62 void colouredit(struct ctlpos *cp, char *stext, int sid, int listid,
63                 char *btext, int bid, ...);