]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
Don't generate wxEVT_COMMAND_DATAVIEW_CACHE_HINT for empty control.
[wxWidgets.git] / src / os2 / statbox.cpp
index 41f25791f4e0645f33c6adf8367204c9e6292cb6..c1512ea6a8653592182b4404445143440e71915a 100644 (file)
@@ -22,8 +22,6 @@
 
 #include "wx/os2/private.h"
 
-IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
-
 bool wxStaticBox::Create( wxWindow*       pParent,
                           wxWindowID      vId,
                           const wxString& rsLabel,
@@ -62,9 +60,7 @@ bool wxStaticBox::Create( wxWindow*       pParent,
     //
     SetBackgroundColour(GetParent()->GetBackgroundColour());
 
-    wxColour                        vColour;
-    vColour.Set(wxString(wxT("BLACK")));
-    LONG                            lColor = (LONG)vColour.GetPixel();
+    LONG lColor = (LONG)wxBLACK->GetPixel();
     ::WinSetPresParam( m_hWnd
                       ,PP_FOREGROUNDCOLOR
                       ,sizeof(LONG)