fixed wxArtProvider::GetSizeHint() to return 16x16 for wxART_FRAME_ICON in non-wxGTK ports

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-10-16 18:53:58 +00:00
parent ab5e7b0274
commit 04a8c1985b
2 changed files with 15 additions and 2 deletions

View File

@@ -98,7 +98,8 @@ All:
All (GUI):
- Fixed wxHTML's pagebreaks computation in tables (D.J.Stauffer).
- Fixed wxRichTextCtrl input that uses Alt on Mac OS X, for example Polish Pro input.
- Fixed wxRichTextCtrl input that uses Alt on Mac OS X, for example
Polish Pro input.
- Fixed wxHtmlWindow::SelectionToText() to correctly insert newlines after
single-cell paragraphs.
@@ -110,6 +111,7 @@ All (Unix):
wxMSW:
- Restored generation of events for accelerators when there is no menu bar.
- Fixed wxArtProvider::GetSizeHint() to return 16x16 for wxART_FRAME_ICON.
wxGTK:

View File

@@ -30,6 +30,10 @@
#include "wx/module.h"
#endif
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
// ===========================================================================
// implementation
// ===========================================================================
@@ -272,7 +276,14 @@ wxArtProvider::~wxArtProvider()
else if (client == wxART_MENU)
return wxSize(16, 15);
else if (client == wxART_FRAME_ICON)
return wxSize(16, 15);
{
#ifdef __WXMSW__
return wxSize(::GetSystemMetrics(SM_CXSMICON),
::GetSystemMetrics(SM_CYSMICON));
#else
return wxSize(16, 16);
#endif // __WXMSW__/!__WXMSW__
}
else if (client == wxART_CMN_DIALOG || client == wxART_MESSAGE_BOX)
return wxSize(32, 32);
else if (client == wxART_HELP_BROWSER)