winhlp32: Invalidate scrollbar when changing pages. (Bug 14293)

Dylan Smith dylan.ah.smith at gmail.com
Mon Mar 23 09:34:55 CDT 2009


Previously the scrollbar was not being shown when clicking on a link to
go to a page with more than a page of text.  This was because winhlp32
was setting up the richedit control with redraw turned off, then
invalidated the client area, which excluded the scrollbar.  Instead I
had the non-client area also invalidated to fix the bug.
---
 programs/winhlp32/winhelp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c
index b042a5a..bac416e 100644
--- a/programs/winhlp32/winhelp.c
+++ b/programs/winhlp32/winhelp.c
@@ -136,7 +136,7 @@ static void WINHELP_SetupText(HWND hTextWnd, WINHELP_WINDOW* win, ULONG relative
         SendMessage(hTextWnd, EM_SETSCROLLPOS, 0, (LPARAM)&pt);
     }
     SendMessage(hTextWnd, WM_SETREDRAW, TRUE, 0);
-    InvalidateRect(hTextWnd, NULL, TRUE);
+    RedrawWindow(hTextWnd, NULL, NULL, RDW_FRAME|RDW_INVALIDATE);
 }
 
 /***********************************************************************


More information about the wine-patches mailing list