Skip to content

Commit

Permalink
fixed issue with tooltip not working when title bar is not on the rig…
Browse files Browse the repository at this point in the history
…ht side
  • Loading branch information
sabrogden committed Oct 4, 2022
1 parent db44039 commit 4faafe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WndEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ int CWndEx::OnCreate(LPCREATESTRUCT lpCreateStruct)
CRect r;
GetWindowRect(&r);
ScreenToClient(&r);
r.InflateRect(m_DittoWindow.m_dpi.Scale(25), m_DittoWindow.m_dpi.Scale(25));
m_toolTip.AddTool(this, _T("Ditto"), r, 1);

return 0;
Expand Down

0 comments on commit 4faafe4

Please sign in to comment.