From 144c947fab1f3253ae480364fc7c8835096e59b7 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sat, 20 Sep 2003 22:58:39 +0000 Subject: [PATCH] Testing creation of some typical sub-windows without WS_VISIBLE style (Those seem to not use it under MSW either...). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/button.cpp | 2 +- src/os2/checkbox.cpp | 3 +-- src/os2/combobox.cpp | 3 +-- src/os2/spinctrl.cpp | 3 +-- src/os2/stattext.cpp | 2 +- src/os2/textctrl.cpp | 2 +- 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/os2/button.cpp b/src/os2/button.cpp index 397ee99eda..4a4f720732 100644 --- a/src/os2/button.cpp +++ b/src/os2/button.cpp @@ -61,7 +61,7 @@ bool wxButton::Create( m_windowId = NewControlId(); else m_windowId = vId; - lStyle = WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON; + lStyle = WS_TABSTOP | BS_PUSHBUTTON; // // OS/2 PM does not have Right/Left/Top/Bottom styles. diff --git a/src/os2/checkbox.cpp b/src/os2/checkbox.cpp index 83480a8ef2..afae8a4f24 100644 --- a/src/os2/checkbox.cpp +++ b/src/os2/checkbox.cpp @@ -81,8 +81,7 @@ bool wxCheckBox::Create( long osStyle = BS_AUTOCHECKBOX | - WS_TABSTOP | - WS_VISIBLE; + WS_TABSTOP; bOk = OS2CreateControl( wxT("BUTTON") ,osStyle diff --git a/src/os2/combobox.cpp b/src/os2/combobox.cpp index 90a8241fae..a104f78f3f 100644 --- a/src/os2/combobox.cpp +++ b/src/os2/combobox.cpp @@ -116,8 +116,7 @@ bool wxComboBox::Create( // long lSstyle = 0L; - lSstyle = WS_TABSTOP | - WS_VISIBLE; + lSstyle = WS_TABSTOP; if (lStyle & wxCLIP_SIBLINGS ) lSstyle |= WS_CLIPSIBLINGS; diff --git a/src/os2/spinctrl.cpp b/src/os2/spinctrl.cpp index 938692dccd..2b14803117 100644 --- a/src/os2/spinctrl.cpp +++ b/src/os2/spinctrl.cpp @@ -145,8 +145,7 @@ bool wxSpinCtrl::Create( int lSstyle = 0L; - lSstyle = WS_VISIBLE | - WS_TABSTOP | + lSstyle = WS_TABSTOP | SPBS_MASTER | // We use only single field spin buttons SPBS_NUMERICONLY; // We default to numeric data diff --git a/src/os2/stattext.cpp b/src/os2/stattext.cpp index d5cfd5c9e4..4083c955f3 100644 --- a/src/os2/stattext.cpp +++ b/src/os2/stattext.cpp @@ -60,7 +60,7 @@ bool wxStaticText::Create( long lSstyle = 0L; - lSstyle = WS_VISIBLE | SS_TEXT | DT_VCENTER; + lSstyle = SS_TEXT | DT_VCENTER; if (m_windowStyle & wxALIGN_CENTRE) lSstyle |= DT_CENTER; else if (m_windowStyle & wxALIGN_RIGHT) diff --git a/src/os2/textctrl.cpp b/src/os2/textctrl.cpp index 21288dd90b..5afa9b31f5 100644 --- a/src/os2/textctrl.cpp +++ b/src/os2/textctrl.cpp @@ -128,7 +128,7 @@ bool wxTextCtrl::Create( m_windowStyle = lStyle; m_bIsMLE = FALSE; - long lSstyle = WS_VISIBLE | WS_TABSTOP; + long lSstyle = WS_TABSTOP; // // Single and multiline edit fields are two different controls in PM