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;