being used as the default.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25151
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
CreateInputHandler(wxINP_HANDLER_STATUSBAR);
SetSize(DoGetBestSize());
CreateInputHandler(wxINP_HANDLER_STATUSBAR);
SetSize(DoGetBestSize());
#include "wx/scrolbar.h"
#include "wx/slider.h"
#include "wx/textctrl.h"
#include "wx/scrolbar.h"
#include "wx/slider.h"
#include "wx/textctrl.h"
+ #include "wx/listbox.h"
#include "wx/toolbar.h"
#ifdef __WXMSW__
#include "wx/toolbar.h"
#ifdef __WXMSW__
if ( !win->ShouldInheritColours() )
{
wxTextCtrl *text = wxDynamicCast(win, wxTextCtrl);
if ( !win->ShouldInheritColours() )
{
wxTextCtrl *text = wxDynamicCast(win, wxTextCtrl);
+#if wxUSE_LISTBOX
+ wxListBox* listBox = wxDynamicCast(win, wxListBox);
+#endif
+ if ( text
+#if wxUSE_LISTBOX
+ || listBox
+#endif
+ )
- if ( !text->IsEnabled() ) // not IsEditable()
+ if ( !win->IsEnabled() ) // not IsEditable()
- //else: execute code below
- }
-
- if ( !col.Ok() )
- {
- // doesn't depend on the state
- col = Get(WINDOW);
+ else
+ {
+ if ( !col.Ok() )
+ {
+ // doesn't depend on the state
+ col = Get(WINDOW);
+ }
+ }
+
+ if (!col.Ok())
+ col = Get(CONTROL); // Most controls should be this colour, not WINDOW