From 56511a54180a6cb108f6ad6b84fbc2ac740b588b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 16 Jan 2009 16:18:01 +0000 Subject: [PATCH] Fixed invisible CHM tooltip text bug when window text colour is black. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/msw/helpchm.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index cbb1978e0c..18376f9f3b 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -143,6 +143,7 @@ wxMSW: - Correct coordinates of wxDropFilesEvent (Dmitriy Maksimov). - Fix handling of abandoned mutexes in wxMutex (David Heffernan). - Avoid warnings about deprecated localtime with MSVC8/9 (Chris Stankevitz). +- Fixed invisible CHM tooltip text bug when window text colour is black. wxMSW/CE: diff --git a/src/msw/helpchm.cpp b/src/msw/helpchm.cpp index 411d495980..52c1cbbd1b 100644 --- a/src/msw/helpchm.cpp +++ b/src/msw/helpchm.cpp @@ -165,8 +165,8 @@ bool wxCHMHelpController::DisplayContextPopup(int contextId) popup.idString = contextId ; GetCursorPos(& popup.pt); - popup.clrForeground = (COLORREF)-1; - popup.clrBackground = (COLORREF)-1; + popup.clrForeground = ::GetSysColor(COLOR_INFOTEXT); + popup.clrBackground = ::GetSysColor(COLOR_INFOBK);; popup.rcMargins.top = popup.rcMargins.left = popup.rcMargins.right = popup.rcMargins.bottom = -1; popup.pszFont = NULL; popup.pszText = NULL;