]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppressing selection highlighting in M.
authorKarsten Ballüder <ballueder@usa.net>
Mon, 10 May 1999 11:54:20 +0000 (11:54 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Mon, 10 May 1999 11:54:20 +0000 (11:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

user/wxLayout/wxllist.cpp

index ecf7e883d9ab88b11cf2d17b9dfc6757b6d845c4..2ab9cdb9b0ff45c75b2eb5d40a78bdfcdcb9d43b 100644 (file)
 
 #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
 }