]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/combobox.cpp
fixed scrollbar refresh
[wxWidgets.git] / src / univ / combobox.cpp
index 4d64edca3ac054a1c0f9aaf99c3b2af83a71ecfd..92dc487e4ea459a0f86121179c47c82a19344973 100644 (file)
@@ -28,7 +28,7 @@
 // ----------------------------------------------------------------------------
 
 #ifdef __GNUG__
-    #pragma implementation "combobox.h"
+    #pragma implementation "univcombobox.h"
 #endif
 
 #include "wx/wxprec.h"
@@ -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;
 }