Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

winstuff.h

00001 /*
00002  * winstuff.h: Windows-specific inter-module stuff.
00003  */
00004 
00005 /*
00006  * Global variables. Most modules declare these `extern', but
00007  * window.c will do `#define PUTTY_DO_GLOBALS' before including this
00008  * module, and so will get them properly defined.
00009  */
00010 #ifdef PUTTY_DO_GLOBALS
00011 #define GLOBAL
00012 #else
00013 #define GLOBAL extern
00014 #endif
00015 
00016 GLOBAL HINSTANCE hinst;
00017 
00018 /*
00019  * Exports from winctrls.c.
00020  */
00021 
00022 struct ctlpos {
00023     HWND hwnd;
00024     WPARAM font;
00025     int dlu4inpix;
00026     int ypos, width;
00027     int xoff;
00028     int boxystart, boxid;
00029     char *boxtext;
00030 };
00031 
00032 /*
00033  * Exports from winutils.c.
00034  */
00035 void split_into_argv(char *, int *, char ***, char ***);
00036 
00037 /*
00038  * Private structure for prefslist state. Only in the header file
00039  * so that we can delegate allocation to callers.
00040  */
00041 struct prefslist {
00042     int listid, upbid, dnbid;
00043     int srcitem;
00044     int dummyitem;
00045     int dragging;
00046 };
00047 
00048 void ctlposinit(struct ctlpos *cp, HWND hwnd,
00049                 int leftborder, int rightborder, int topborder);
00050 HWND doctl(struct ctlpos *cp, RECT r,
00051            char *wclass, int wstyle, int exstyle, char *wtext, int wid);
00052 void bartitle(struct ctlpos *cp, char *name, int id);
00053 void beginbox(struct ctlpos *cp, char *name, int idbox);
00054 void endbox(struct ctlpos *cp);
00055 void multiedit(struct ctlpos *cp, ...);
00056 void radioline(struct ctlpos *cp, char *text, int id, int nacross, ...);
00057 void bareradioline(struct ctlpos *cp, int nacross, ...);
00058 void radiobig(struct ctlpos *cp, char *text, int id, ...);
00059 void checkbox(struct ctlpos *cp, char *text, int id);
00060 void statictext(struct ctlpos *cp, char *text, int lines, int id);
00061 void staticbtn(struct ctlpos *cp, char *stext, int sid,
00062                char *btext, int bid);
00063 void static2btn(struct ctlpos *cp, char *stext, int sid,
00064                 char *btext1, int bid1, char *btext2, int bid2);
00065 void staticedit(struct ctlpos *cp, char *stext,
00066                 int sid, int eid, int percentedit);
00067 void staticddl(struct ctlpos *cp, char *stext,
00068                int sid, int lid, int percentlist);
00069 void combobox(struct ctlpos *cp, char *text, int staticid, int listid);
00070 void staticpassedit(struct ctlpos *cp, char *stext,
00071                     int sid, int eid, int percentedit);
00072 void bigeditctrl(struct ctlpos *cp, char *stext,
00073                  int sid, int eid, int lines);
00074 void ersatztab(struct ctlpos *cp, char *stext, int sid, int lid, int s2id);
00075 void editbutton(struct ctlpos *cp, char *stext, int sid,
00076                 int eid, char *btext, int bid);
00077 void sesssaver(struct ctlpos *cp, char *text,
00078                int staticid, int editid, int listid, ...);
00079 void envsetter(struct ctlpos *cp, char *stext, int sid,
00080                char *e1stext, int e1sid, int e1id,
00081                char *e2stext, int e2sid, int e2id,
00082                int listid, char *b1text, int b1id, char *b2text, int b2id);
00083 void charclass(struct ctlpos *cp, char *stext, int sid, int listid,
00084                char *btext, int bid, int eid, char *s2text, int s2id);
00085 void colouredit(struct ctlpos *cp, char *stext, int sid, int listid,
00086                 char *btext, int bid, ...);
00087 void prefslist(struct prefslist *hdl, struct ctlpos *cp, char *stext,
00088                int sid, int listid, int upbid, int dnbid);
00089 int handle_prefslist(struct prefslist *hdl,
00090                      int *array, int maxmemb,
00091                      int is_dlmsg, HWND hwnd,
00092                      WPARAM wParam, LPARAM lParam);
00093 void progressbar(struct ctlpos *cp, int id);
00094 void fwdsetter(struct ctlpos *cp, int listid, char *stext, int sid,
00095                char *e1stext, int e1sid, int e1id,
00096                char *e2stext, int e2sid, int e2id,
00097                char *btext, int bid);

Generated on Sun Feb 9 13:01:29 2003 for PuTTY by doxygen1.2.18