1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-16 02:27:32 -05:00

Fix double-keystrokes by wrapping CreateDialog

[originally from svn r3267]
This commit is contained in:
Owen Dunn
2003-06-16 23:55:26 +00:00
parent 68da549341
commit 27d54e8f96
3 changed files with 54 additions and 6 deletions

View File

@ -23,6 +23,13 @@ struct FontSpec {
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
@ -63,6 +70,11 @@ typedef HDC Context;
*/
GLOBAL HWND logbox;
/*
* Global structure to hold return values from the config box.
*/
GLOBAL struct dlgboxinfo boxinfo;
/*
* The all-important instance handle.
*/
@ -307,6 +319,17 @@ void force_normal(HWND hwnd);
void modal_about_box(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.
*/