[PATCH 1/8] Add a WM_ERASEBKGND handler
Nikolay Sivov
bunglehead at gmail.com
Tue Oct 20 12:47:50 CDT 2009
---
dlls/comctl32/syslink.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/syslink.c b/dlls/comctl32/syslink.c
index f361779..1b940c0 100644
--- a/dlls/comctl32/syslink.c
+++ b/dlls/comctl32/syslink.c
@@ -906,6 +906,22 @@ static LRESULT SYSLINK_Paint (const SYSLINK_INFO *infoPtr, HDC hdcParam)
return 0;
}
+/***********************************************************************
+ * SYSLINK_EraseBkgnd
+ * Handles the WM_ERASEBKGND message.
+ */
+static LRESULT SYSLINK_EraseBkgnd (const SYSLINK_INFO *infoPtr, HDC hdc)
+{
+ HBRUSH hbr;
+ RECT r;
+
+ GetClientRect(infoPtr->Self, &r);
+ hbr = CreateSolidBrush(comctl32_color.clrBtnFace);
+ FillRect(hdc, &r, hbr);
+ DeleteObject(hbr);
+
+ return 1;
+}
/***********************************************************************
* SYSLINK_SetFont
@@ -1551,6 +1567,9 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
case WM_PAINT:
return SYSLINK_Paint (infoPtr, (HDC)wParam);
+ case WM_ERASEBKGND:
+ return SYSLINK_EraseBkgnd(infoPtr, (HDC)wParam);
+
case WM_SETCURSOR:
{
LHITTESTINFO ht;
--
1.5.6.5
--=-d9MHl/c7ld6zzZP77G34--
More information about the wine-patches
mailing list