]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbmp.cpp
removed deprecated ConvertToBitmap() and wxImage(wxBitmap) ctor
[wxWidgets.git] / src / msw / statbmp.cpp
index fa803fe344fd3e0032ed4e4b7fb88fa2a488c95c..db1d8b11d35f10aac847e1685220d7fdf4835183 100644 (file)
@@ -98,6 +98,12 @@ bool wxStaticBitmap::Create(wxWindow *parent,
                             long style,
                             const wxString& name)
 {
+    // default border for this control is none
+    if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
+    {
+        style |= wxBORDER_NONE;
+    }
+    
     if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
         return FALSE;