瀏覽代碼

added option for how long you need to hover over caption before it expands

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@624 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 13 年之前
父節點
當前提交
5ccb1109da
共有 3 個文件被更改,包括 8 次插入1 次删除
  1. 5 0
      Options.cpp
  2. 2 0
      Options.h
  3. 1 1
      WndEx.cpp

+ 5 - 0
Options.cpp

@@ -2018,4 +2018,9 @@ DWORD CGetSetOptions::GetFunnyTickCountAdjustment()
 DWORD CGetSetOptions::GetMinIdleTimeBeforeTrackFocus()
 {
 	return GetProfileLong(_T("MinIdleTimeBeforeTrackFocus"), 100);
+}
+
+DWORD CGetSetOptions::GetTimeBeforeExpandWindow()
+{
+	return GetProfileLong(_T("TimeBeforeExpandWindow"), 250);
 }

+ 2 - 0
Options.h

@@ -419,6 +419,8 @@ public:
 	static DWORD	GetFunnyTickCountAdjustment();
 
 	static DWORD	GetMinIdleTimeBeforeTrackFocus();
+
+	static DWORD	GetTimeBeforeExpandWindow();
 };
 
 // global for easy access and for initialization of fast access variables

+ 1 - 1
WndEx.cpp

@@ -319,7 +319,7 @@ void CWndEx::OnNcMouseMove(UINT nHitTest, CPoint point)
 		COleDateTimeSpan sp = COleDateTime::GetCurrentTime() - m_TimeMinimized;
 		if(sp.GetTotalSeconds() >= m_lDelayMaxSeconds)
 		{
-			SetTimer(TIMER_AUTO_MAX, 250, NULL);
+			SetTimer(TIMER_AUTO_MAX, CGetSetOptions::GetTimeBeforeExpandWindow(), NULL);
 			m_bMaxSetTimer = true;
 		}
 	}