Skip to content

Commit

Permalink
UI中的鼠标提示设置鼠标穿透属性
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyang219 committed Aug 31, 2024
1 parent 5cbed78 commit eb2c79c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MusicPlayer2/CPlayerUIBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit eb2c79c

Please sign in to comment.