From c36f1fc7c9c91a008b308cf6775f2f7a134ef2f1 Mon Sep 17 00:00:00 2001
From: Julian Smart <julian@anthemion.co.uk>
Date: Mon, 9 Feb 2004 21:44:57 +0000
Subject: [PATCH] Changed no-remap to msw.remap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/changes.txt          | 4 ++--
 docs/latex/wx/toolbar.tex | 4 ++--
 src/msw/tbar95.cpp        | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/changes.txt b/docs/changes.txt
index b58f442fc0..c23a5bb563 100644
--- a/docs/changes.txt
+++ b/docs/changes.txt
@@ -157,8 +157,8 @@ wxMSW:
 - background colour of a wxComboBox may now be set
 - fixed wxListCtrl::GetItemText/BackgroundColour()
 - Esc can now be used to close menus in the dialogs (Hartmut Honisch)
-- Added no-remap system option so colourful toolbar buttons
-  aren't mangled
+- Added msw.remap system option so colourful toolbar buttons
+  aren't mangled if you set it to 0
 - Toolbar buttons are now centred if the bitmap size is smaller
   than the specified default size
 
diff --git a/docs/latex/wx/toolbar.tex b/docs/latex/wx/toolbar.tex
index 6c76dc6fb4..26df69d8d7 100644
--- a/docs/latex/wx/toolbar.tex
+++ b/docs/latex/wx/toolbar.tex
@@ -44,11 +44,11 @@ of a "separator" is a vertical line under Windows95 vs. simple space under GTK e
 {\bf wxToolBar95:} Note that this toolbar paints tools to reflect system-wide colours.
 If you use more than 16 colours in your tool bitmaps, you may wish to suppress
 this behaviour, otherwise system colours in your bitmaps will inadvertently be
-mapped to system colours. To do this, set the {\tt no-remap} system option
+mapped to system colours. To do this, set the {\tt msw.remap} system option
 before creating the toolbar:
 
 \begin{verbatim}
-  wxSystemOptions::SetOption(wxT("no-remap"), 1);
+  wxSystemOptions::SetOption(wxT("msw.remap"), 0);
 \end{verbatim}
 
 \wxheading{Window styles}
diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp
index 172db4547d..425a9c80b4 100644
--- a/src/msw/tbar95.cpp
+++ b/src/msw/tbar95.cpp
@@ -540,7 +540,7 @@ bool wxToolBar::Realize()
         MemoryHDC memoryDC2;
 #endif // USE_BITMAP_MASKS/!USE_BITMAP_MASKS
 
-        if (wxSystemOptions::GetOptionInt(wxT("no-remap")) == 1)
+        if (wxSystemOptions::HasOption(wxT("msw.remap")) && wxSystemOptions::GetOptionInt(wxT("msw.remap")) == 0)
         {
 #if USE_BITMAP_MASKS
             dcAllButtons.SelectObject(wxNullBitmap);
@@ -606,7 +606,7 @@ bool wxToolBar::Realize()
         bitmap.SetHBITMAP(0);
 #endif // USE_BITMAP_MASKS/!USE_BITMAP_MASKS
 
-        if (!wxSystemOptions::HasOption(wxT("no-remap")) || wxSystemOptions::GetOptionInt(wxT("no-remap")) == 0)
+        if (!wxSystemOptions::HasOption(wxT("msw.remap")) || wxSystemOptions::GetOptionInt(wxT("msw.remap")) == 1)
         {
             // Map to system colours
             hBitmap = (HBITMAP)MapBitmap((WXHBITMAP) hBitmap,
-- 
2.50.0

