X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f289196b3a47487984ed01ee108476bc227c4d5a..ff095200f79b459f1159f59d031b1c50c0b3194b:/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;