From fb4e50d0fe5929f8a945f878e46fb8c96eb17ac7 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 10 Sep 2008 03:09:55 +0000 Subject: [PATCH] grids: don't intersect with window messages which are > WM_USER (UDM_SETBUDDY, etc). fixes #0012112 git-svn-id: trunk@16518 - --- lcl/grids.pas | 16 ++++++++-------- lcl/lmessages.pp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lcl/grids.pas b/lcl/grids.pas index a1ab619c06..76ff5c2da8 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -53,14 +53,14 @@ const GRIDFILEVERSION = 3; // Introduced Col/Row FixedAttr and NormalAttr const - GM_SETVALUE = LM_USER + 100; - GM_GETVALUE = LM_USER + 101; - GM_SETGRID = LM_USER + 102; - GM_SETBOUNDS = LM_USER + 103; - GM_SELECTALL = LM_USER + 104; - GM_SETMASK = LM_USER + 105; - GM_SETPOS = LM_USER + 106; - GM_READY = LM_USER + 107; + GM_SETVALUE = LM_INTERFACELAST + 100; + GM_GETVALUE = LM_INTERFACELAST + 101; + GM_SETGRID = LM_INTERFACELAST + 102; + GM_SETBOUNDS = LM_INTERFACELAST + 103; + GM_SELECTALL = LM_INTERFACELAST + 104; + GM_SETMASK = LM_INTERFACELAST + 105; + GM_SETPOS = LM_INTERFACELAST + 106; + GM_READY = LM_INTERFACELAST + 107; const diff --git a/lcl/lmessages.pp b/lcl/lmessages.pp index 3dfd8fb8c9..d7b8856ade 100644 --- a/lcl/lmessages.pp +++ b/lcl/lmessages.pp @@ -46,7 +46,7 @@ const // RECEIVED from the interface, here are no defines // of messages send to the interface //------------- - LM_USER = $400; // MWE: changed from $100 to $400 since they were in the windows range + LM_USER = $400; // standard WM_USER value WM_USER = LM_USER; // reserve some space for LM_USER messages