]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/control.cpp
use wxFileName::MakeAbsolute istead of Normalize
[wxWidgets.git] / src / os2 / control.cpp
index 6b4a38bc8bee0e9a85d788f6fc72c31b0c0625ec..ed246a1d4e0b989bffc80d668c229bb73c892555 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"
@@ -46,9 +47,7 @@ bool wxControl::Create(
 , const wxPoint&                    rPos
 , const wxSize&                     rSize
 , long                              lStyle
-#if wxUSE_VALIDATORS
 , const wxValidator&                rValidator
-#endif
 , const wxString&                   rsName
 )
 {
@@ -117,7 +116,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;