1
0
Эх сурвалжийг харах

increase the window that we show the resize icon in the corners

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@814 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 10 жил өмнө
parent
commit
15ce2c8fab
1 өөрчлөгдсөн 8 нэмэгдсэн , 8 устгасан
  1. 8 8
      DittoWindow.cpp

+ 8 - 8
DittoWindow.cpp

@@ -77,17 +77,17 @@ UINT CDittoWindow::DoNcHitTest(CWnd *pWnd, CPoint point)
 
 	if(m_bMinimized == false)
 	{
-		if ((point.y < crWindow.top + BORDER * 2) &&
-			(point.x < crWindow.left + BORDER * 2))
+		if ((point.y < crWindow.top + BORDER * 4) &&
+			(point.x < crWindow.left + BORDER * 4))
 			return HTTOPLEFT;
-		else if ((point.y < crWindow.top + BORDER * 2) &&
-			(point.x > crWindow.right - BORDER * 2))
+		else if ((point.y < crWindow.top + BORDER * 4) &&
+			(point.x > crWindow.right - BORDER * 4))
 			return HTTOPRIGHT;
-		else if ((point.y > crWindow.bottom - BORDER * 2) &&
-			(point.x > crWindow.right - BORDER * 2))
+		else if ((point.y > crWindow.bottom - BORDER * 4) &&
+			(point.x > crWindow.right - BORDER * 4))
 			return HTBOTTOMRIGHT;
-		else if ((point.y > crWindow.bottom - BORDER * 2) &&
-			(point.x < crWindow.left + BORDER * 2))
+		else if ((point.y > crWindow.bottom - BORDER * 4) &&
+			(point.x < crWindow.left + BORDER * 4))
 			return HTBOTTOMLEFT;
 	}