From: Karsten Ballüder Date: Mon, 10 May 1999 11:54:20 +0000 (+0000) Subject: Suppressing selection highlighting in M. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1a89d2f4fb47e69704615840bd2d9641e73a38e1 Suppressing selection highlighting in M. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/user/wxLayout/wxllist.cpp b/user/wxLayout/wxllist.cpp index ecf7e883d9..2ab9cdb9b0 100644 --- a/user/wxLayout/wxllist.cpp +++ b/user/wxLayout/wxllist.cpp @@ -24,8 +24,10 @@ #ifdef M_BASEDIR # include "gui/wxllist.h" +# undef SHOW_SELECTIONS #else # include "wxllist.h" +# define SHOW_SELECTIONS #endif #ifndef USE_PCH @@ -1631,16 +1633,20 @@ wxLayoutList::IsSelected(const wxLayoutLine *line, CoordType *from, void wxLayoutList::StartHighlighting(wxDC &dc) { +#ifdef SHOW_SELECTIONS dc.SetTextForeground(m_ColourBG); dc.SetTextBackground(m_ColourFG); +#endif } /// Ends highlighting the selection void wxLayoutList::EndHighlighting(wxDC &dc) { +#ifdef SHOW_SELECTIONS dc.SetTextForeground(m_ColourFG); dc.SetTextBackground(m_ColourBG); +#endif }