projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix double-keystrokes by wrapping CreateDialog
[u/mdw/putty]
/
winstuff.h
diff --git
a/winstuff.h
b/winstuff.h
index
33b604f
..
4bc90db
100644
(file)
--- a/
winstuff.h
+++ b/
winstuff.h
@@
-23,6
+23,13
@@
struct FontSpec {
int charset;
};
int charset;
};
+struct dlgboxinfo {
+ int result;
+ int flags;
+};
+
+#define DF_END 0x0001
+
/*
* Global variables. Most modules declare these `extern', but
* window.c will do `#define PUTTY_DO_GLOBALS' before including this
/*
* Global variables. Most modules declare these `extern', but
* window.c will do `#define PUTTY_DO_GLOBALS' before including this
@@
-64,6
+71,11
@@
typedef HDC Context;
GLOBAL HWND logbox;
/*
GLOBAL HWND logbox;
/*
+ * Global structure to hold return values from the config box.
+ */
+GLOBAL struct dlgboxinfo boxinfo;
+
+/*
* The all-important instance handle.
*/
GLOBAL HINSTANCE hinst;
* The all-important instance handle.
*/
GLOBAL HINSTANCE hinst;
@@
-308,6
+320,17
@@
void modal_about_box(HWND hwnd);
void show_help(HWND hwnd);
/*
void show_help(HWND hwnd);
/*
+ * Exports from winmisc.c.
+ */
+
+int SaneDialogBox(HINSTANCE hinst,
+ LPCTSTR tmpl,
+ HWND hwndparent,
+ DLGPROC lpDialogFunc);
+
+void SaneEndDialog(HWND hwnd, int ret);
+
+/*
* Exports from sizetip.c.
*/
void UpdateSizeTip(HWND src, int cx, int cy);
* Exports from sizetip.c.
*/
void UpdateSizeTip(HWND src, int cx, int cy);