Nikolay Sivov : comctl32/syslink: Add a WM_ERASEBKGND handler.
Alexandre Julliard
julliard at winehq.org
Wed Oct 21 13:14:03 CDT 2009
Module: wine
Branch: master
Commit: 92c2d8afcd7b7fe17ebe2a9c30df4a5271478847
URL: http://source.winehq.org/git/wine.git/?a=commit;h=92c2d8afcd7b7fe17ebe2a9c30df4a5271478847
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue Oct 20 21:47:50 2009 +0400
comctl32/syslink: Add a WM_ERASEBKGND handler.
---
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;
More information about the wine-cvs
mailing list