X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8cb172b4f12fae80b06d5936108a1bc7f2521674..43bb528818bcbe0d0bd7f49a3321b698dd6d17db:/src/univ/combobox.cpp diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index 3a1859b370..92dc487e4e 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -5,7 +5,7 @@ // Modified by: // Created: 15.12.00 // RCS-ID: $Id$ -// Copyright: (c) 2000 Vadim Zeitlin +// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -88,7 +88,7 @@ public: SetBitmapSelected(bmpPressed); SetBitmapDisabled(bmpDisabled); - SetSize(bmpNormal.GetWidth(), bmpNormal.GetHeight()); +// SetSize(bmpNormal.GetWidth(), bmpNormal.GetHeight()); } protected: @@ -201,6 +201,8 @@ void wxComboControl::Init() m_popup = (wxComboPopup *)NULL; m_winPopup = (wxPopupComboWindow *)NULL; m_isPopupShown = FALSE; + m_btn = NULL; + m_text = NULL; } bool wxComboControl::Create(wxWindow *parent, @@ -326,8 +328,11 @@ bool wxComboControl::Show(bool show) if ( !wxControl::Show(show) ) return FALSE; - m_btn->Show(show); - m_text->Show(show); + if (m_btn) + m_btn->Show(show); + + if (m_text) + m_text->Show(show); return TRUE; }