+
+#if wxUSE_IMAGE
+ // The standard native message box icons are in message box size (32x32).
+ // If they are requested in any size other than the default or message
+ // box size, they must be rescaled first.
+ if ( client != wxART_MESSAGE_BOX && client != wxART_OTHER )
+ {
+ const wxSize size = wxArtProvider::GetNativeSizeHint(client);
+ if ( size != wxDefaultSize )
+ {
+ wxImage img = bmp.ConvertToImage();
+ img.Rescale(size.x, size.y);
+ bmp = wxBitmap(img);
+ }
+ }
+#endif // wxUSE_IMAGE
+