diff options
Diffstat (limited to 'no_history/options.cpp')
-rw-r--r-- | no_history/options.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/no_history/options.cpp b/no_history/options.cpp index 6f2733f..349a2b0 100644 --- a/no_history/options.cpp +++ b/no_history/options.cpp @@ -128,11 +128,16 @@ static BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l SetAllContactIcons(GetDlgItem(hwndDlg,IDC_LIST));
SetListGroupIcons(GetDlgItem(hwndDlg,IDC_LIST),(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETNEXTITEM,CLGN_ROOT,0),hItemAll,NULL);
+ SendDlgItemMessage(hwndDlg, IDC_SPN_TIMEOUT, UDM_SETRANGE, 0, (LPARAM)MAKELONG(60 * 60, 1)); + SetDlgItemInt(hwndDlg, IDC_ED_TIMEOUT, event_timeout, FALSE);
+
return FALSE;
case WM_SETFOCUS:
SetFocus(GetDlgItem(hwndDlg,IDC_LIST));
break;
case WM_COMMAND:
+ if ( HIWORD( wParam ) == EN_CHANGE && ( HWND )lParam == GetFocus())
+ SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
case WM_NOTIFY:
switch(((LPNMHDR)lParam)->idFrom) {
@@ -222,6 +227,14 @@ static BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l }
}
} while(hContact=(HANDLE)CallService(MS_DB_CONTACT_FINDNEXT,(WPARAM)hContact,0));
+
+ BOOL trans;
+ int val = GetDlgItemInt(hwndDlg, IDC_ED_TIMEOUT, &trans, FALSE);
+ if(trans) {
+ event_timeout = val;
+ DBWriteContactSettingDword(0, MODULE, "EventTimeout", event_timeout);
+ }
+
return TRUE;
}
}
|