From eb2c79cef6f4abcc620ed8170bcc04ae91c5c823 Mon Sep 17 00:00:00 2001 From: zhongyang219 Date: Sat, 31 Aug 2024 10:59:14 +0800 Subject: [PATCH] =?UTF-8?q?UI=E4=B8=AD=E7=9A=84=E9=BC=A0=E6=A0=87=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=AE=BE=E7=BD=AE=E9=BC=A0=E6=A0=87=E7=A9=BF=E9=80=8F?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MusicPlayer2/CPlayerUIBase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MusicPlayer2/CPlayerUIBase.cpp b/MusicPlayer2/CPlayerUIBase.cpp index 08cafa5f..58c67237 100644 --- a/MusicPlayer2/CPlayerUIBase.cpp +++ b/MusicPlayer2/CPlayerUIBase.cpp @@ -30,6 +30,8 @@ void CPlayerUIBase::Init(CDC* pDC) m_tool_tip.Create(m_pMainWnd, TTS_ALWAYSTIP); m_tool_tip.SetMaxTipWidth(theApp.DPI(400)); + //为CToolTipCtrl设置鼠标穿透 + SetWindowLong(m_tool_tip.GetSafeHwnd(), GWL_EXSTYLE, GetWindowLong(m_tool_tip.GetSafeHwnd(), GWL_EXSTYLE) | WS_EX_TRANSPARENT); m_first_draw = true; }