User32 static.c:

- Patch by Dmitry Timoshkov, modified for ReactOS.
    - Use computed icon rectangle if SS_CENTERIMAGE style is set.

svn path=/trunk/; revision=23981
This commit is contained in:
James Tabor
2006-09-08 22:30:46 +00:00
parent 9233af3e50
commit 03a2724000
2 changed files with 5 additions and 7 deletions
+4 -6
View File
@@ -746,14 +746,12 @@ static void STATIC_PaintIconfn( HWND hwnd, HDC hdc, DWORD style )
iconRect.top = (rc.bottom - rc.top) / 2 - bm.bmHeight / 2;
iconRect.right = iconRect.left + bm.bmWidth;
iconRect.bottom = iconRect.top + bm.bmHeight;
FillRect( hdc, &iconRect, hbrush ); /* Wine source has &rc */
}
else
{
FillRect( hdc, &rc, hbrush );
DrawIconEx( hdc, rc.left, rc.top, hIcon, rc.right - rc.left,
rc.bottom - rc.top, 0, NULL, DI_NORMAL );
}
iconRect = rc;
FillRect( hdc, &rc, hbrush );
DrawIconEx( hdc, iconRect.left, iconRect.top, hIcon, iconRect.right - iconRect.left,
iconRect.bottom - iconRect.top, 0, NULL, DI_NORMAL );
}
}
+1 -1
View File
@@ -124,7 +124,7 @@ User32 -
reactos/dll/win32/user32/controls/icontitle.c # Synced at 20060617
reactos/dll/win32/user32/controls/listbox.c # Synced at 20060616
reactos/dll/win32/user32/controls/scrollbar.c # Forked
reactos/dll/win32/user32/controls/static.c # Synced at 20060622
reactos/dll/win32/user32/controls/static.c # Synced at 20060908
reactos/dll/win32/user32/misc/dde.c # Synced at 20060623 (dde_misc.c)
reactos/dll/win32/user32/misc/ddeclient.c # Synced at 20060623