Browse Source

Fixed import message window size

Scott Brogden 7 years ago
parent
commit
9425901dff
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ToolTipEx.cpp

+ 3 - 3
ToolTipEx.cpp

@@ -573,9 +573,9 @@ CRect CToolTipEx::GetBoundsRect()
 		rect.right = size.cx;
 		rect.bottom = size.cy * nNumLines;
     }    
-
-    rect.bottom += m_rectMargin.top + m_rectMargin.bottom;
-    rect.right += m_rectMargin.left + m_rectMargin.right + 2;
+	
+    rect.bottom += m_rectMargin.top + m_rectMargin.bottom + GetSystemMetrics(SM_CYVSCROLL);
+    rect.right += m_rectMargin.left + m_rectMargin.right + GetSystemMetrics(SM_CXVSCROLL);
 
     if(m_imageViewer.m_pGdiplusBitmap)
     {