]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Ben Rudiak-Gould points out that we should be using WM_APP as the base for
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 10 Aug 2005 18:31:24 +0000 (18:31 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 10 Aug 2005 18:31:24 +0000 (18:31 +0000)
our app-private window messages, which is considerably higher than the
WM_XUSER we arbitrarily chose. (This isn't known to be causing any actual
problems. The fix seems not to have obviously broken anything.)

[originally from svn r6183]
[this svn revision also touched putty-wishlist]

windows/window.c
windows/winpgen.c
windows/winpgnt.c
windows/winplink.c
windows/winstuff.h

index a37ac4884f8942a94a401e0ee1bb52bde733091f..713349369a4bd67835e9063f55665b6b6e3a4ae8 100644 (file)
@@ -50,9 +50,9 @@
 /* Maximum number of sessions on saved-session submenu */
 #define MENU_SAVED_MAX ((IDM_SAVED_MAX-IDM_SAVED_MIN) / MENU_SAVED_STEP)
 
-#define WM_IGNORE_CLIP (WM_XUSER + 2)
-#define WM_FULLSCR_ON_MAX (WM_XUSER + 3)
-#define WM_AGENT_CALLBACK (WM_XUSER + 4)
+#define WM_IGNORE_CLIP (WM_APP + 2)
+#define WM_FULLSCR_ON_MAX (WM_APP + 3)
+#define WM_AGENT_CALLBACK (WM_APP + 4)
 
 /* Needed for Chinese support and apparently not always defined. */
 #ifndef VK_PROCESSKEY
index e35a8c162d8f9bae93b55b181f29f4ecf4e8b419..d767b233928ee1243f1a4931b226e38a05c23890 100644 (file)
@@ -17,7 +17,7 @@
 #define ICON_BIG        1
 #endif
 
-#define WM_DONEKEY (WM_XUSER + 1)
+#define WM_DONEKEY (WM_APP + 1)
 
 #define DEFAULT_KEYSIZE 1024
 
index 7f6404b7740f75a83e02a1125347ec1e92da0099..59a12e20e095ece87ba6a1cfa45c3b84289a7830 100644 (file)
@@ -24,9 +24,8 @@
 #define IDI_MAINICON 200
 #define IDI_TRAYICON 201
 
-#define WM_XUSER     (WM_USER + 0x2000)
-#define WM_SYSTRAY   (WM_XUSER + 6)
-#define WM_SYSTRAY2  (WM_XUSER + 7)
+#define WM_SYSTRAY   (WM_APP + 6)
+#define WM_SYSTRAY2  (WM_APP + 7)
 
 #define AGENT_COPYDATA_ID 0x804e50ba   /* random goop */
 
index ae80bf9bd903f6c8c8f060239a69c22b4d731589..a67a2375487c54c64455bbfc47887d305d5203bf 100644 (file)
@@ -12,7 +12,7 @@
 #include "storage.h"
 #include "tree234.h"
 
-#define WM_AGENT_CALLBACK (WM_XUSER + 4)
+#define WM_AGENT_CALLBACK (WM_APP + 4)
 
 #define MAX_STDIN_BACKLOG 4096
 
index 5febe16c5ab811be60ef146d35e7a0e20b213c6c..f70b007ee17fabc33136dbd29e6f6a1fdbf792c5 100644 (file)
@@ -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