X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/093dee5e9d6574cf2c4e4c6764b7a40573ae4a4d..72259e00633be1e01a10cb4d6eba33f8a5fca228:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 25aecb4bdf..210d3ecf59 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -2176,6 +2176,22 @@ bool wxTextCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) return wxTextCtrlBase::MSWOnNotify(idCtrl, lParam, result); } +// ---------------------------------------------------------------------------- +// default colors for MSW text control +// ---------------------------------------------------------------------------- + +wxVisualAttributes wxTextCtrl::GetDefaultAttributes() const +{ + // it is important to return valid values for all attributes from here, + // GetXXX() below rely on this + wxVisualAttributes attrs; + attrs.font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT); + attrs.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT); + attrs.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW); + + return attrs; +} + // ---------------------------------------------------------------------------- // colour setting for the rich edit controls // ----------------------------------------------------------------------------