From c515594b02af57a615cabc839ba6b834ac4890f3 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Fri, 5 Aug 2016 17:16:22 +0000 Subject: [PATCH] [COMCTL32] - rebar: actually pass the hittest flag to the NM_NCHITTEST notification. CORE-11532 svn path=/trunk/; revision=72116 --- reactos/dll/win32/comctl32/rebar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/comctl32/rebar.c b/reactos/dll/win32/comctl32/rebar.c index 5bac66bdd04..47ff3ae223c 100644 --- a/reactos/dll/win32/comctl32/rebar.c +++ b/reactos/dll/win32/comctl32/rebar.c @@ -3378,7 +3378,7 @@ REBAR_NCHitTest (const REBAR_INFO *infoPtr, LPARAM lParam) (INT *)&nmmouse.dwItemSpec); nmmouse.dwItemData = 0; nmmouse.pt = clpt; - nmmouse.dwHitInfo = 0; + nmmouse.dwHitInfo = scrap; if ((i = REBAR_Notify((NMHDR *) &nmmouse, infoPtr, NM_NCHITTEST))) { TRACE("notify changed return value from %ld to %d\n", ret, i); @@ -3450,6 +3450,7 @@ REBAR_Paint (const REBAR_INFO *infoPtr, HDC hdc) { if (hdc) { TRACE("painting\n"); + REBAR_EraseBkGnd (infoPtr, hdc); REBAR_Refresh (infoPtr, hdc); } else { PAINTSTRUCT ps;