]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbmp.cpp
keep the owning window
[wxWidgets.git] / src / msw / statbmp.cpp
index 26a32bf03b6a2ff351329f10fd539b73d8b2a7c0..537c193d847663f98ec2b54b57b339194baaff67 100644 (file)
@@ -166,16 +166,11 @@ bool wxStaticBitmap::Create(wxWindow *parent,
     SetImageNoCopy(image);
 
     // GetBestSize will work properly now, so set the best size if needed
-    SetBestSize(size);
+    SetInitialSize(size);
 
     return true;
 }
 
-wxBorder wxStaticBitmap::GetDefaultBorder() const
-{
-    return wxBORDER_NONE;
-}
-
 WXDWORD wxStaticBitmap::MSWGetStyle(long style, WXDWORD *exstyle) const
 {
     WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);