mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 14:11:23 +00:00
- Fix draw of cursors in static controls
- Last part of fix for bug #4874 svn path=/trunk/; revision=50398
This commit is contained in:
parent
44f8ef985c
commit
030dbb0bbc
1 changed files with 9 additions and 1 deletions
|
@ -863,7 +863,15 @@ static void STATIC_PaintIconfn( HWND hwnd, HDC hdc, DWORD style )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BITMAP bm;
|
BITMAP bm;
|
||||||
if (!GetObjectW(info.hbmColor, sizeof(BITMAP), &bm)) return;
|
if (info.fIcon)
|
||||||
|
{
|
||||||
|
GetObjectW(info.hbmColor, sizeof(BITMAP), &bm);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bm.bmWidth = GetSystemMetrics(SM_CXCURSOR);
|
||||||
|
bm.bmHeight = GetSystemMetrics(SM_CYCURSOR);
|
||||||
|
}
|
||||||
if (style & SS_CENTERIMAGE)
|
if (style & SS_CENTERIMAGE)
|
||||||
{
|
{
|
||||||
iconRect.left = (rc.right - rc.left) / 2 - bm.bmWidth / 2;
|
iconRect.left = (rc.right - rc.left) / 2 - bm.bmWidth / 2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue