]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/control.cpp
don't mention GUI-only changes in the base section
[wxWidgets.git] / src / os2 / control.cpp
index 6b4a38bc8bee0e9a85d788f6fc72c31b0c0625ec..b7e9f82af744bcd12d7b907a5781d2d85fd6b50e 100644 (file)
@@ -21,6 +21,7 @@
 #include "wx/app.h"
 #include "wx/dcclient.h"
 #include "wx/scrolwin.h"
+#include "wx/log.h"
 #endif
 #include "wx/os2/private.h"
 #include "wx/control.h"
@@ -117,7 +118,8 @@ bool wxControl::OS2CreateControl(
     // All controls should have these styles (wxWindows creates all controls
     // visible by default)
     //
-    dwStyle |= WS_VISIBLE;
+    if (m_isShown )
+        dwStyle |= WS_VISIBLE;
 
     wxWindow*                       pParent = GetParent();
     PSZ                             zClass;