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
This commit is contained in:
Julian Smart
2009-01-16 16:18:01 +00:00
parent dca07f802e
commit 56511a5418
2 changed files with 3 additions and 2 deletions

View File

@@ -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:

View File

@@ -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;