Fix setting frame icon when using non-standard icon sizes in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 24 Jan 2012 22:17:47 +0000 (22:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 24 Jan 2012 22:17:47 +0000 (22:17 +0000)
commitd928f01967cec20e112cc9dde2162b147d8f1433
tree1c4c7301ac4bad3e1bae71adebcf4667d0e365bb
parentcd747e1598205eddde96768b61cc7f0b324ba870
Fix setting frame icon when using non-standard icon sizes in wxMSW.

Set the closest (and larger, if possible) icon if the icon of exactly the
system icon size is not available. This fixes setting the icons when using
custom DPI settings under MSW as the standard icon size may be different from
the standard 32*32 in this case.

This also improves wxIconBundle::GetIcon() to make its behaviour when the icon
with exactly the given size is not found more flexible as a side effect.

Closes #13891.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/iconbndl.h
interface/wx/iconbndl.h
src/common/iconbndl.cpp
src/msw/toplevel.cpp