summaryrefslogtreecommitdiff
path: root/plugins/RecentContacts/options.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-23 13:03:18 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-23 13:03:18 +0000
commit60338d55bb73d0c45b6e092703c4bb88a3c49755 (patch)
tree30305d6576617177f237046d95474173ba6ab194 /plugins/RecentContacts/options.cpp
parent201ace762530e0bec270301fd23f039af3872875 (diff)
Rate, RecentContacts, Scriver: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1121 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/RecentContacts/options.cpp')
-rw-r--r--plugins/RecentContacts/options.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/plugins/RecentContacts/options.cpp b/plugins/RecentContacts/options.cpp
deleted file mode 100644
index d8f09adb9b..0000000000
--- a/plugins/RecentContacts/options.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-#include "RecentContacts.h"
-#include "resource.h"
-
-extern HINSTANCE hInst;
-void LoadDBSettings();
-
-INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
-{
- char str[32];
-
- switch (msg) {
- case WM_INITDIALOG:
- TranslateDialogDefault(hwndDlg);
- CheckDlgButton(hwndDlg, IDC_HIDEOFFLINE, (LastUCOpt.HideOffline ? BST_CHECKED : BST_UNCHECKED));
-
- mir_snprintf(str, SIZEOF(str), "%d", LastUCOpt.MaxShownContacts);
- SetDlgItemTextA(hwndDlg, IDC_SHOWNCONTACTS, str);
-
- mir_snprintf(str, SIZEOF(str), "%s", LastUCOpt.DateTimeFormat.c_str());
- SetDlgItemTextA(hwndDlg, IDC_DATETIME, str);
-
- SetWindowLongPtr(hwndDlg,GWLP_USERDATA,lParam);
- return TRUE;
-
- case WM_COMMAND:
- switch(HIWORD(wParam)) {
- case EN_CHANGE:
- case BN_CLICKED:
- case CBN_EDITCHANGE:
- case CBN_SELCHANGE:
- SendMessage(GetParent(hwndDlg),PSM_CHANGED,0,0);
- }
- break;
-
- case WM_NOTIFY:
- {
- LPNMHDR phdr = (LPNMHDR)(lParam);
- if (phdr->idFrom == 0 && phdr->code == PSN_APPLY) {
- BOOL bSuccess = FALSE;
-
- LastUCOpt.HideOffline = (BOOL)IsDlgButtonChecked(hwndDlg, IDC_HIDEOFFLINE);
- DBWriteContactSettingByte(NULL, dbLastUC_ModuleName, dbLastUC_HideOfflineContacts, (BYTE)LastUCOpt.HideOffline);
-
- GetDlgItemTextA(hwndDlg, IDC_SHOWNCONTACTS, str, SIZEOF(str));
- LastUCOpt.MaxShownContacts= atoi(str);
- DBWriteContactSettingByte(0,dbLastUC_ModuleName, dbLastUC_MaxShownContacts, LastUCOpt.MaxShownContacts);
-
- GetDlgItemTextA(hwndDlg, IDC_DATETIME, str, SIZEOF(str));
- DBWriteContactSettingString(0,dbLastUC_ModuleName, dbLastUC_DateTimeFormat, str );
-
- LoadDBSettings();
- return TRUE;
- }
- break;
- }
- }
- return FALSE;
-}
-
-int onOptInitialise(WPARAM wParam, LPARAM lParam)
-{
- OPTIONSDIALOGPAGE odp = { 0 };
- odp.cbSize = sizeof(odp);
- odp.hInstance = hInst;
- odp.pszGroup = LPGEN("Contact List");
- odp.pszTemplate = MAKEINTRESOURCEA(IDD_LASTUC_OPT);
- odp.pszTitle = msLastUC_ShowListName;
- odp.pfnDlgProc = DlgProcOptions;
- odp.flags = ODPF_BOLDGROUPS;
- Options_AddPage(wParam, &odp);
-
- return 0;
-}