]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed invisible CHM tooltip text bug when window text colour is black.
authorJulian Smart <julian@anthemion.co.uk>
Wed, 20 May 2009 13:16:17 +0000 (13:16 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 20 May 2009 13:16:17 +0000 (13:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/helpchm.cpp

index e88789a0427ece18b7934795e3337e1a8770fe93..b41a59626d424cf7c11df3100a116e51f3f5093d 100644 (file)
@@ -156,8 +156,8 @@ wxCHMHelpController::DoDisplayTextPopup(const wxChar *text,
     popup.pszText = text;
     popup.pt.x = pos.x;
     popup.pt.y = pos.y;
-    popup.clrForeground =
-    popup.clrBackground = (COLORREF)-1;
+    popup.clrForeground = ::GetSysColor(COLOR_INFOTEXT);
+    popup.clrBackground = ::GetSysColor(COLOR_INFOBK);
     popup.rcMargins.top =
     popup.rcMargins.left =
     popup.rcMargins.right =