Module: wine Branch: master Commit: 6e077e0bc0454ba6d024353e33f569f06be796e5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e077e0bc0454ba6d024353e33...
Author: Marcus Meissner meissner@suse.de Date: Thu Jan 27 16:38:03 2011 +0100
user32: Get MDI icon as close the "small icon" as possible.
---
dlls/user32/mdi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c index bcaef76..6385476 100644 --- a/dlls/user32/mdi.c +++ b/dlls/user32/mdi.c @@ -866,7 +866,7 @@ static BOOL MDI_AugmentFrameMenu( HWND frame, HWND hChild ) if (!hIcon) hIcon = (HICON)SendMessageW(hChild, WM_GETICON, ICON_BIG, 0); if (!hIcon) - hIcon = LoadImageW(0, MAKEINTRESOURCEW(IDI_WINLOGO), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR); + hIcon = LoadImageW(0, MAKEINTRESOURCEW(IDI_WINLOGO), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR); if (hIcon) { HDC hMemDC;