]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/control.cpp
Applied patch [ 549256 ] fix minor bug in widgets sample
[wxWidgets.git] / src / os2 / control.cpp
index 6b4a38bc8bee0e9a85d788f6fc72c31b0c0625ec..a50497174d8dd5fe5a4a71dfd267f119d430a991 100644 (file)
@@ -117,7 +117,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;