• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28321 (tree)
Time2018-07-28 15:26:10
Authorstefankueng

Log Message

Set the splitter ranges DPI-aware.

Change Summary

Incremental Difference

--- trunk/src/TortoiseProc/LogDialog/LogDlg.cpp (revision 28320)
+++ trunk/src/TortoiseProc/LogDialog/LogDlg.cpp (revision 28321)
@@ -73,6 +73,8 @@
7373 #include "../LogCache/Streams/StreamException.h"
7474
7575 #define ICONITEMBORDER 5
76+#define MIN_CTRL_HEIGHT (CDPIAware::Instance().Scale(20))
77+#define MIN_SPLITTER_HEIGHT (CDPIAware::Instance().Scale(10))
7678
7779 const UINT CLogDlg::m_FindDialogMessage = RegisterWindowMessage(FINDMSGSTRING);
7880 const UINT CLogDlg::WM_TASKBARCREATED = RegisterWindowMessage(L"TaskbarCreated");
@@ -4127,9 +4129,9 @@
41274129 m_ChangedFileListCtrl.GetWindowRect(rcBottom);
41284130 ScreenToClient(rcBottom);
41294131
4130- m_wndSplitter1.SetRange(rcTop.top+20, rcBottom.bottom-50);
4131- m_wndSplitter2.SetRange(rcTop.top+50, rcBottom.bottom-20);
4132- m_wndSplitterLeft.SetRange(80, rcTop.right - m_LogListOrigRect.Width());
4132+ m_wndSplitter1.SetRange(rcTop.top + MIN_CTRL_HEIGHT, rcBottom.bottom - (2 * MIN_CTRL_HEIGHT + MIN_SPLITTER_HEIGHT));
4133+ m_wndSplitter2.SetRange(rcTop.top + (2 * MIN_CTRL_HEIGHT + MIN_SPLITTER_HEIGHT), rcBottom.bottom - MIN_CTRL_HEIGHT);
4134+ m_wndSplitterLeft.SetRange(CDPIAware::Instance().Scale(80), rcTop.right - m_LogListOrigRect.Width());
41334135 }
41344136 }
41354137
@@ -6361,9 +6363,9 @@
63616363 m_ChangedFileListCtrl.GetWindowRect(rcBottom);
63626364 ScreenToClient(rcBottom);
63636365
6364- m_wndSplitter1.SetRange(rcTop.top + 20, rcBottom.bottom - 50);
6365- m_wndSplitter2.SetRange(rcTop.top + 50, rcBottom.bottom - 20);
6366- m_wndSplitterLeft.SetRange(80, rcTop.right - m_LogListOrigRect.Width());
6366+ m_wndSplitter1.SetRange(rcTop.top + MIN_CTRL_HEIGHT, rcBottom.bottom - (2 * MIN_CTRL_HEIGHT + MIN_SPLITTER_HEIGHT));
6367+ m_wndSplitter2.SetRange(rcTop.top + (2 * MIN_CTRL_HEIGHT + MIN_SPLITTER_HEIGHT), rcBottom.bottom - MIN_CTRL_HEIGHT);
6368+ m_wndSplitterLeft.SetRange(CDPIAware::Instance().Scale(80), rcTop.right - m_LogListOrigRect.Width());
63676369 }
63686370 }
63696371
Show on old repository browser