From c5d7205ca284d90d3f68d4b8a67ecca2b07f71ef Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 May 2006 23:15:01 +0000 Subject: [PATCH] don't strip &s from tooltips (patch 1488318) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/tooltip.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 8fde93e577..8ca70b9ff3 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -199,9 +199,11 @@ WXHWND wxToolTip::GetToolTipCtrl() { if ( !ms_hwndTT ) { + // we want to show the tooltips always (even when the window is not + // active) and we don't want to strip "&"s from them ms_hwndTT = (WXHWND)::CreateWindow(TOOLTIPS_CLASS, (LPCTSTR)NULL, - TTS_ALWAYSTIP, + TTS_ALWAYSTIP | TTS_NOPREFIX, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, (HMENU)NULL, -- 2.45.2