X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f289196b3a47487984ed01ee108476bc227c4d5a..1b6f93fcfe211e81c77d7485c4c3786a846c84df:/src/os2/control.cpp?ds=inline diff --git a/src/os2/control.cpp b/src/os2/control.cpp index 6b4a38bc8b..b7e9f82af7 100644 --- a/src/os2/control.cpp +++ b/src/os2/control.cpp @@ -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;