]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/control.cpp
Updated versions to 2.3.3
[wxWidgets.git] / src / os2 / control.cpp
index 592ea3f48e881157e69e95bf55e1067af77f9429..35551cb4b4b1b0c65a730f2dae8531a34bcf48c1 100644 (file)
@@ -33,8 +33,6 @@ END_EVENT_TABLE()
 // Item members
 wxControl::wxControl()
 {
 // Item members
 wxControl::wxControl()
 {
-  m_backgroundColour = *wxWHITE;
-  m_foregroundColour = *wxBLACK;
 
 #if WXWIN_COMPATIBILITY
   m_callback = 0;
 
 #if WXWIN_COMPATIBILITY
   m_callback = 0;
@@ -136,6 +134,8 @@ bool wxControl::OS2CreateControl(
 
     if ((strcmp(zClassname, "COMBOBOX")) == 0)
         zClass = WC_COMBOBOX;
 
     if ((strcmp(zClassname, "COMBOBOX")) == 0)
         zClass = WC_COMBOBOX;
+    else if ((strcmp(zClassname, "STATIC")) == 0)
+        zClass = WC_STATIC;
     dwStyle |= WS_VISIBLE;
     m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(GetParent()) // Parent window handle
                                        ,(PSZ)zClassname              // Window class
     dwStyle |= WS_VISIBLE;
     m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(GetParent()) // Parent window handle
                                        ,(PSZ)zClassname              // Window class