[PATCH] user32: Get MDI icon as close the "small icon" as possible
Marcus Meissner
meissner at suse.de
Thu Jan 27 09:38:03 CST 2011
Hi,
(Uncovered by previous FIXME for LoadImage.)
LoadImage (0,0,0) would get the first icon entry, not a well matching
one. Try to get a small sized icon according to sysmetrics.
Ciao, Marcus
---
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;
--
1.7.1
More information about the wine-patches
mailing list