assert in wxTopLevelWindowMSW::SetIcon[s]() if none of the provided icons has required size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-10-16 19:13:32 +00:00
parent 7abd9a0331
commit 0f278d7763
2 changed files with 16 additions and 5 deletions

View File

@@ -222,7 +222,9 @@ public:
reference counting, the copy is very quick. It is safe to
delete @a icon after calling this function.
@see wxIcon
@note In wxMSW, @a icon must be either 16x16 or 32x32 icon.
@see wxIcon, SetIcons()
*/
void SetIcon(const wxIcon& icon);
@@ -235,7 +237,10 @@ public:
@param icons
The icons to associate with this window.
@see wxIconBundle.
@note In wxMSW, @a icons must contain a 16x16 or 32x32 icon,
preferably both.
@see wxIconBundle
*/
virtual void SetIcons(const wxIconBundle& icons);