X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinstuff.h;h=f70b007ee17fabc33136dbd29e6f6a1fdbf792c5;hb=69ac38c1a847348de4c05fd4e19abf17a10de8b3;hp=177c7d2fc7a0a8922976786abcdf6987a6f49bad;hpb=d0beed9aba20865b9829e3203b4067e8822a0f4d;p=PuTTY.git diff --git a/windows/winstuff.h b/windows/winstuff.h index 177c7d2f..f70b007e 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -28,7 +28,7 @@ struct FontSpec { }; #define BOXFLAGS DLGWINDOWEXTRA -#define BOXRESULT DLGWINDOWEXTRA + 4 +#define BOXRESULT (DLGWINDOWEXTRA + sizeof(LONG_PTR)) #define DF_END 0x0001 /* @@ -95,13 +95,7 @@ GLOBAL int requested_help; GLOBAL Terminal *term; GLOBAL void *logctx; -/* - * I've just looked in the windows standard headr files for WM_USER, there - * are hundreds of flags defined using the form WM_USER+123 so I've - * renumbered this NETEVENT value and the two in window.c - */ -#define WM_XUSER (WM_USER + 0x2000) -#define WM_NETEVENT (WM_XUSER + 5) +#define WM_NETEVENT (WM_APP + 5) /* * On Windows, we send MA_2CLK as the only event marking the second @@ -231,7 +225,8 @@ HWND doctl(struct ctlpos *cp, RECT r, void bartitle(struct ctlpos *cp, char *name, int id); void beginbox(struct ctlpos *cp, char *name, int idbox); void endbox(struct ctlpos *cp); -void multiedit(struct ctlpos *cp, int password, ...); +void editboxfw(struct ctlpos *cp, int password, char *text, + int staticid, int editid); void radioline(struct ctlpos *cp, char *text, int id, int nacross, ...); void bareradioline(struct ctlpos *cp, int nacross, ...); void radiobig(struct ctlpos *cp, char *text, int id, ...);