Gerald Pfeifer : user32: Factor in EDIT_WM_EraseBkGnd().

Alexandre Julliard julliard at winehq.org
Tue Jan 8 10:21:46 CST 2008


Module: wine
Branch: master
Commit: 29b8c35bbf5cf0d316747da036abc4062b1c073c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=29b8c35bbf5cf0d316747da036abc4062b1c073c

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Mon Jan  7 15:11:09 2008 +0100

user32: Factor in EDIT_WM_EraseBkGnd().

---

 dlls/user32/edit.c |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index d7c6499..7f9f24e 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -263,7 +263,6 @@ static void	EDIT_WM_ContextMenu(EDITSTATE *es, INT x, INT y);
 static void	EDIT_WM_Copy(EDITSTATE *es);
 static LRESULT	EDIT_WM_Create(EDITSTATE *es, LPCWSTR name);
 static LRESULT	EDIT_WM_Destroy(EDITSTATE *es);
-static LRESULT	EDIT_WM_EraseBkGnd(EDITSTATE *es, HDC dc);
 static INT	EDIT_WM_GetText(const EDITSTATE *es, INT count, LPWSTR dst, BOOL unicode);
 static LRESULT	EDIT_WM_HScroll(EDITSTATE *es, INT action, INT pos);
 static LRESULT	EDIT_WM_KeyDown(EDITSTATE *es, INT key);
@@ -893,7 +892,8 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg,
 		break;
 
 	case WM_ERASEBKGND:
-		result = EDIT_WM_EraseBkGnd(es, (HDC)wParam);
+		/* we do the proper erase in EDIT_WM_Paint */
+		result = 1;
 		break;
 
 	case WM_GETFONT:
@@ -4260,18 +4260,6 @@ static LRESULT EDIT_WM_Destroy(EDITSTATE *es)
 
 /*********************************************************************
  *
- *	WM_ERASEBKGND
- *
- */
-static LRESULT EDIT_WM_EraseBkGnd(EDITSTATE *es, HDC dc)
-{
-    /* we do the proper erase in EDIT_WM_Paint */
-    return 1;
-}
-
-
-/*********************************************************************
- *
  *	WM_GETTEXT
  *
  */




More information about the wine-cvs mailing list