comctl32/syslink: Add a WM_ERASEBKGND handler.

This commit is contained in:
Nikolay Sivov 2009-10-20 21:47:50 +04:00 committed by Alexandre Julliard
parent 90029d3429
commit 92c2d8afcd
1 changed files with 19 additions and 0 deletions

View File

@ -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;