From 4faafe45655f747f234bbb3c432342253243eab8 Mon Sep 17 00:00:00 2001 From: Scott Brogden Date: Tue, 4 Oct 2022 08:37:06 -0600 Subject: [PATCH] fixed issue with tooltip not working when title bar is not on the right side --- WndEx.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/WndEx.cpp b/WndEx.cpp index 52eab972..7f011794 100644 --- a/WndEx.cpp +++ b/WndEx.cpp @@ -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;