mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user