]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - window.c
Simon has reminded me _why_ menu identifiers were spaced every sixteen, so
[PuTTY.git] / window.c
index cd5dda49b835c008e6d6f6293694dd6e479cf48e..248623313e35135bdfbedc66be61ebfb10996ebd 100644 (file)
--- a/window.c
+++ b/window.c
 #include <richedit.h>
 #include <mmsystem.h>
 
+/* From MSDN: In the WM_SYSCOMMAND message, the four low-order bits of
+ * wParam are used by Windows, and should be masked off, so we shouldn't
+ * attempt to store information in them. Hence all these identifiers have
+ * the low 4 bits clear. */
+
 #define IDM_SHOWLOG   0x0010
 #define IDM_NEWSESS   0x0020
 #define IDM_DUPSESS   0x0030