2 * winstuff.h: Windows-specific inter-module stuff.
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.
10 #ifdef PUTTY_DO_GLOBALS
16 GLOBAL HINSTANCE hinst
;
19 * Exports from winctrls.c.
33 * Private structure for prefslist state. Only in the header file
34 * so that we can delegate allocation to callers.
37 int listid
, upbid
, dnbid
;
43 void ctlposinit(struct ctlpos
*cp
, HWND hwnd
,
44 int leftborder
, int rightborder
, int topborder
);
45 HWND
doctl(struct ctlpos
*cp
, RECT r
,
46 char *wclass
, int wstyle
, int exstyle
, char *wtext
, int wid
);
47 void bartitle(struct ctlpos
*cp
, char *name
, int id
);
48 void beginbox(struct ctlpos
*cp
, char *name
, int idbox
);
49 void endbox(struct ctlpos
*cp
);
50 void multiedit(struct ctlpos
*cp
, ...);
51 void radioline(struct ctlpos
*cp
, char *text
, int id
, int nacross
, ...);
52 void bareradioline(struct ctlpos
*cp
, int nacross
, ...);
53 void radiobig(struct ctlpos
*cp
, char *text
, int id
, ...);
54 void checkbox(struct ctlpos
*cp
, char *text
, int id
);
55 void statictext(struct ctlpos
*cp
, char *text
, int id
);
56 void staticbtn(struct ctlpos
*cp
, char *stext
, int sid
,
57 char *btext
, int bid
);
58 void staticedit(struct ctlpos
*cp
, char *stext
,
59 int sid
, int eid
, int percentedit
);
60 void dropdownlist(struct ctlpos
*cp
, char *text
, int staticid
, int listid
);
61 void staticpassedit(struct ctlpos
*cp
, char *stext
,
62 int sid
, int eid
, int percentedit
);
63 void bigeditctrl(struct ctlpos
*cp
, char *stext
,
64 int sid
, int eid
, int lines
);
65 void ersatztab(struct ctlpos
*cp
, char *stext
, int sid
, int lid
, int s2id
);
66 void editbutton(struct ctlpos
*cp
, char *stext
, int sid
,
67 int eid
, char *btext
, int bid
);
68 void sesssaver(struct ctlpos
*cp
, char *text
,
69 int staticid
, int editid
, int listid
, ...);
70 void envsetter(struct ctlpos
*cp
, char *stext
, int sid
,
71 char *e1stext
, int e1sid
, int e1id
,
72 char *e2stext
, int e2sid
, int e2id
,
73 int listid
, char *b1text
, int b1id
, char *b2text
, int b2id
);
74 void charclass(struct ctlpos
*cp
, char *stext
, int sid
, int listid
,
75 char *btext
, int bid
, int eid
, char *s2text
, int s2id
);
76 void colouredit(struct ctlpos
*cp
, char *stext
, int sid
, int listid
,
77 char *btext
, int bid
, ...);
78 void prefslist(struct prefslist
*hdl
, struct ctlpos
*cp
, char *stext
,
79 int sid
, int listid
, int upbid
, int dnbid
);
80 int handle_prefslist(struct prefslist
*hdl
,
81 int *array
, int maxmemb
,
82 int is_dlmsg
, HWND hwnd
,
83 WPARAM wParam
, LPARAM lParam
);
84 void progressbar(struct ctlpos
*cp
, int id
);
85 void fwdsetter(struct ctlpos
*cp
, int listid
, char *stext
, int sid
,
86 char *e1stext
, int e1sid
, int e1id
,
87 char *e2stext
, int e2sid
, int e2id
,
88 char *btext
, int bid
);