From ce0b6f45fc77af2e80c2f71a85f22e87aacf97ca Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 2 Nov 2004 22:30:24 +0000 Subject: [PATCH] Simon has reminded me _why_ menu identifiers were spaced every sixteen, so let's add a comment so that we don't forget again. Source: git-svn-id: svn://svn.tartarus.org/sgt/putty@4732 cda61777-01e9-0310-a592-d414129be87e --- pageant.c | 5 +++++ window.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pageant.c b/pageant.c index e0def27a..e0f77c30 100644 --- a/pageant.c +++ b/pageant.c @@ -33,6 +33,11 @@ */ #define AGENT_MAX_MSGLEN 8192 +/* 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_CLOSE 0x0010 #define IDM_VIEWKEYS 0x0020 #define IDM_ADDKEY 0x0030 diff --git a/window.c b/window.c index cd5dda49..24862331 100644 --- a/window.c +++ b/window.c @@ -22,6 +22,11 @@ #include #include +/* 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 -- 2.11.0