Просмотр исходного кода

Fixed import message window size

Scott Brogden 7 лет назад
Родитель
Сommit
9425901dff
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      ToolTipEx.cpp

+ 3 - 3
ToolTipEx.cpp

@@ -573,9 +573,9 @@ CRect CToolTipEx::GetBoundsRect()
 		rect.right = size.cx;
 		rect.right = size.cx;
 		rect.bottom = size.cy * nNumLines;
 		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)
     if(m_imageViewer.m_pGdiplusBitmap)
     {
     {