]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
restored WS_EX_TRANSPARENT as otherwise background can be not drawn at all sometimes
[wxWidgets.git] / src / os2 / statbox.cpp
index 1142b348f042938262d7974b179d0b8d2e2ba2d1..470c2380e974811690985ddf832d1f39fad443af 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     ??/??/98
 // RCS-ID:      $Id$
 // Copyright:   (c) David Webster
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // For compilers that support precompilation, includes "wx.h".
@@ -96,11 +96,12 @@ wxSize wxStaticBox::DoGetBestSize() const
     int                             nCx;
     int                             nCy;
     int                             wBox;
+    wxFont                          vFont = GetFont();
 
     wxGetCharSize( GetHWND()
                   ,&nCx
                   ,&nCy
-                  ,(wxFont*)&GetFont()
+                  ,&vFont
                  );
     GetTextExtent( wxGetWindowText(m_hWnd)
                   ,&wBox