X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/e73667f337301c82c515562f5c79a54fd40d4c55..99a2d7d4212b5df19d919337e9619b85c702d0f8:/windows/winstuff.h diff --git a/windows/winstuff.h b/windows/winstuff.h index 1ecf6dcb..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