From c550a1a958b4bc00d560c46be1f0c3555a0354c5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 1 Dec 2014 23:51:09 -0500 Subject: [PATCH] Small precautionary change in Windows Table: use WM_USER + 20 instead of WM_USER just in case we ever get dialog manager messages (which are the first few WM_USER messages because technically they belong to WC_DIALOG). --- wintable/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wintable/main.c b/wintable/main.c index aa92520..848e6d6 100644 --- a/wintable/main.c +++ b/wintable/main.c @@ -55,10 +55,11 @@ enum { #define tableWindowClass L"gouitable" +// start at WM_USER + 20 just in case for whatever reason we ever get the various dialog manager messages (see also http://blogs.msdn.com/b/oldnewthing/archive/2003/10/21/55384.aspx) enum { // wParam - one of the type constants // lParam - column name as a Unicode string - tableAddColumn = WM_USER, + tableAddColumn = WM_USER + 20, }; enum {