|
|
@@ -145,6 +145,7 @@ END_MESSAGE_MAP()
|
|
|
#define SETTING_IGNORE_ANNOYING_CF_DIB 94
|
|
|
#define SETTING_REGEX_CASE_INSENSITIVE 95
|
|
|
#define SETTING_DRAW_COPIED_COLOR_CODE 96
|
|
|
+#define SETTING_CENTER_WINDOW_BELOW_CURSOR_CARET 97
|
|
|
|
|
|
BOOL CAdvGeneral::OnInitDialog()
|
|
|
{
|
|
|
@@ -183,6 +184,7 @@ BOOL CAdvGeneral::OnInitDialog()
|
|
|
|
|
|
AddTrueFalse(pGroupTest, _T("Always show scroll bar"), CGetSetOptions::GetShowScrollBar(), SETTING_ALWAYS_SHOW_SCROLL_BAR);
|
|
|
pGroupTest->AddSubItem(new CMFCPropertyGridProperty(_T("Amount of text to save for description"), g_Opt.m_bDescTextSize, _T(""), SETTING_DESC_SIZE));
|
|
|
+ AddTrueFalse(pGroupTest, _T("Center window below cursor or caret"), CGetSetOptions::GetCenterWindowBelowCursorOrCaret(), SETTING_CENTER_WINDOW_BELOW_CURSOR_CARET);
|
|
|
pGroupTest->AddSubItem(new CMFCPropertyGridProperty(_T("Copy and save clipboard delay (ms)"), (long)CGetSetOptions::GetCopyAndSveDelay(), _T(""), SETTING_COPY_SAVE_DELAY));
|
|
|
pGroupTest->AddSubItem(new CMFCPropertyGridProperty(_T("Clipboard restore delay after copy buffer sent paste (ms, default: 750)"), (long)(CGetSetOptions::GetDittoRestoreClipboardDelay()), _T(""), SETTING_CLIPBOARD_RESTORE_AFTER_COPY_BUFFER_DELAY));
|
|
|
|
|
|
@@ -849,6 +851,13 @@ void CAdvGeneral::OnBnClickedOk()
|
|
|
CGetSetOptions::SetDrawCopiedColorCode(val);
|
|
|
}
|
|
|
break;
|
|
|
+ case SETTING_CENTER_WINDOW_BELOW_CURSOR_CARET:
|
|
|
+ if (wcscmp(pNewValue->bstrVal, pOrigValue->bstrVal) != 0)
|
|
|
+ {
|
|
|
+ BOOL val = wcscmp(pNewValue->bstrVal, L"True") == 0;
|
|
|
+ CGetSetOptions::SetCenterWindowBelowCursorOrCaret(val);
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|