X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17a1ebd101f0653e69736416a2a28d0ada423141..54a6974c51b533d398bfc13f06cf5e26f13866c1:/src/xrc/xmlres.cpp diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index ba4e864870..ac70cff460 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -787,6 +787,7 @@ void wxXmlResourceHandler::AddWindowStyles() XRC_ADD_STYLE(wxTAB_TRAVERSAL); XRC_ADD_STYLE(wxNO_FULL_REPAINT_ON_RESIZE); XRC_ADD_STYLE(wxFULL_REPAINT_ON_RESIZE); + XRC_ADD_STYLE(wxALWAYS_SHOW_SB); XRC_ADD_STYLE(wxWS_EX_BLOCK_EVENTS); XRC_ADD_STYLE(wxWS_EX_VALIDATE_RECURSIVELY); } @@ -1090,8 +1091,11 @@ wxBitmap wxXmlResourceHandler::GetBitmap(const wxString& param, return wxNullBitmap; } if (!(size == wxDefaultSize)) img.Rescale(size.x, size.y); +#if !defined(__WXMSW__) || wxUSE_WXDIB return wxBitmap(img); - +#else + return wxBitmap(); +#endif }