Icons fetched from wxMimeTypesManager did not get the width/height of

the icon, now they do.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-07-15 18:29:52 +00:00
parent 28c98a77e9
commit 6bad4c327c
3 changed files with 11 additions and 5 deletions

View File

@@ -41,7 +41,7 @@
#ifdef __WXMSW__
#include "wx/msw/registry.h"
#include "windows.h"
#include "wx/msw/private.h"
#endif // OS
#include "wx/msw/mimetype.h"
@@ -374,6 +374,8 @@ bool wxFileTypeImpl::GetIcon(wxIcon *icon,
default:
icon->SetHICON((WXHICON)hIcon);
wxSize size = wxGetHiconSize(hIcon);
icon->SetSize(size);
if ( iconIndex )
*iconIndex = nIndex;
if ( iconFile )