X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f289196b3a47487984ed01ee108476bc227c4d5a..c921fd5994d6d22b08ec98512eb59ee6f8939460:/src/os2/control.cpp diff --git a/src/os2/control.cpp b/src/os2/control.cpp index 6b4a38bc8b..218236ec34 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" @@ -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; @@ -133,6 +133,8 @@ bool wxControl::OS2CreateControl( zClass = WC_BUTTON; else if ((strcmp(zClassname, "NOTEBOOK")) == 0) zClass = WC_NOTEBOOK; + else if ((strcmp(zClassname, "CONTAINER")) == 0) + zClass = WC_CONTAINER; dwStyle |= WS_VISIBLE; m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle