X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f289196b3a47487984ed01ee108476bc227c4d5a..d38e8d5f34262fa688cd0e5d397a2201978e5fa7:/src/os2/control.cpp diff --git a/src/os2/control.cpp b/src/os2/control.cpp index 6b4a38bc8b..a50497174d 100644 --- a/src/os2/control.cpp +++ b/src/os2/control.cpp @@ -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;