SS_BITMAP paint patch.

Rein Klazes rklazes at xs4all.nl
Thu May 20 11:39:34 CDT 2004


Hi,

This fixes the "Tip of the day" dialog for Paint Shop Pro 7. The whole box was
erased when repainting the small bitmap in it. The control's dimensions are not
used anyway, according to MSDN.  

Changelog:
	controls/	: static.c
	When repainting a static control, with SS_BITMAP style, do not erase the 
	background. Keep sending the WM_CTLCOLORSTATIC notification as Windows
	does.

Rein.
-- 
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/controls/static.c	2004-04-02 18:22:52.000000000 +0200
+++ mywine/controls/static.c	2004-05-20 18:04:19.000000000 +0200
@@ -555,15 +555,12 @@
 
 static void STATIC_PaintBitmapfn(HWND hwnd, HDC hdc, DWORD style )
 {
-    RECT rc;
-    HBRUSH hbrush;
     HDC hMemDC;
     HBITMAP hBitmap, oldbitmap;
 
-    GetClientRect( hwnd, &rc );
-    hbrush = (HBRUSH)SendMessageW( GetParent(hwnd), WM_CTLCOLORSTATIC,
+    /* message is still sent, even if the returned brush is not used */
+    SendMessageW( GetParent(hwnd), WM_CTLCOLORSTATIC,
 				   (WPARAM)hdc, (LPARAM)hwnd );
-    FillRect( hdc, &rc, hbrush );
 
     if ((hBitmap = (HBITMAP)GetWindowLongA( hwnd, HICON_GWL_OFFSET )))
     {


More information about the wine-patches mailing list