Skip to content

Commit 4faafe4

Browse files
committed
fixed issue with tooltip not working when title bar is not on the right side
1 parent db44039 commit 4faafe4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WndEx.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ int CWndEx::OnCreate(LPCREATESTRUCT lpCreateStruct)
116116
CRect r;
117117
GetWindowRect(&r);
118118
ScreenToClient(&r);
119+
r.InflateRect(m_DittoWindow.m_dpi.Scale(25), m_DittoWindow.m_dpi.Scale(25));
119120
m_toolTip.AddTool(this, _T("Ditto"), r, 1);
120121

121122
return 0;

0 commit comments

Comments
 (0)