]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbmp.cpp
Add support for icons in wxAUI panes title bars.
[wxWidgets.git] / src / os2 / statbmp.cpp
index 3ec5c73c5818ce7268cbf2f66606c09599c7dcf9..5874763573e462f5c0ea725ff326b3471856ac9e 100644 (file)
@@ -17,9 +17,9 @@
 #ifndef WX_PRECOMP
     #include "wx/icon.h"
     #include "wx/window.h"
+    #include "wx/dcclient.h"
 #endif
 
-#include "wx/dcclient.h"
 #include "wx/os2/private.h"
 
 #include <stdio.h>
@@ -28,8 +28,6 @@
 // macros
 // ---------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
-
 BEGIN_EVENT_TABLE(wxStaticBitmap, wxWindow)
     EVT_PAINT(wxStaticBitmap::OnPaint)
 END_EVENT_TABLE()
@@ -43,7 +41,7 @@ static wxGDIImage* ConvertImage(
     if(!bIsIcon )
     {
         wxASSERT_MSG( wxDynamicCast(&rBitmap, wxBitmap),
-                      _T("not an icon and not a bitmap?") );
+                      wxT("not an icon and not a bitmap?") );
 
         const wxBitmap&             rBmp = (const wxBitmap&)rBitmap;
         wxMask*                     pMask = rBmp.GetMask();
@@ -141,9 +139,7 @@ bool wxStaticBitmap::ImageIsOk() const
 
 void wxStaticBitmap::Free()
 {
-    if (m_pImage)
-        delete m_pImage;
-    m_pImage = NULL;
+    wxDELETE(m_pImage);
 } // end of wxStaticBitmap::Free
 
 wxSize wxStaticBitmap::DoGetBestSize() const