diff options
Diffstat (limited to 'plugins/RecentContacts/src/options.cpp')
-rw-r--r-- | plugins/RecentContacts/src/options.cpp | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/plugins/RecentContacts/src/options.cpp b/plugins/RecentContacts/src/options.cpp index f227f0534d..da67bff9bd 100644 --- a/plugins/RecentContacts/src/options.cpp +++ b/plugins/RecentContacts/src/options.cpp @@ -3,7 +3,7 @@ extern HINSTANCE hInst;
void LoadDBSettings();
-INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+static INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
char str[32];
@@ -33,27 +33,25 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP break;
case WM_NOTIFY:
- {
- LPNMHDR phdr = (LPNMHDR)(lParam);
- if (phdr->idFrom == 0 && phdr->code == PSN_APPLY) {
- LastUCOpt.HideOffline = (BOOL)IsDlgButtonChecked(hwndDlg, IDC_HIDEOFFLINE);
- db_set_b(NULL, dbLastUC_ModuleName, dbLastUC_HideOfflineContacts, (BYTE)LastUCOpt.HideOffline);
+ LPNMHDR phdr = (LPNMHDR)(lParam);
+ if (phdr->idFrom == 0 && phdr->code == PSN_APPLY) {
+ LastUCOpt.HideOffline = (BOOL)IsDlgButtonChecked(hwndDlg, IDC_HIDEOFFLINE);
+ db_set_b(NULL, MODULENAME, dbLastUC_HideOfflineContacts, (BYTE)LastUCOpt.HideOffline);
- LastUCOpt.WindowAutoSize = (BOOL)IsDlgButtonChecked(hwndDlg, IDC_WINDOWAUTOSIZE);
- db_set_b(NULL, dbLastUC_ModuleName, dbLastUC_WindowAutosize, (BYTE)LastUCOpt.WindowAutoSize);
+ LastUCOpt.WindowAutoSize = (BOOL)IsDlgButtonChecked(hwndDlg, IDC_WINDOWAUTOSIZE);
+ db_set_b(NULL, MODULENAME, dbLastUC_WindowAutosize, (BYTE)LastUCOpt.WindowAutoSize);
- GetDlgItemTextA(hwndDlg, IDC_SHOWNCONTACTS, str, _countof(str));
- LastUCOpt.MaxShownContacts= atoi(str);
- db_set_b(0,dbLastUC_ModuleName, dbLastUC_MaxShownContacts, LastUCOpt.MaxShownContacts);
+ GetDlgItemTextA(hwndDlg, IDC_SHOWNCONTACTS, str, _countof(str));
+ LastUCOpt.MaxShownContacts= atoi(str);
+ db_set_b(0,MODULENAME, dbLastUC_MaxShownContacts, LastUCOpt.MaxShownContacts);
- GetDlgItemTextA(hwndDlg, IDC_DATETIME, str, _countof(str));
- db_set_s(0,dbLastUC_ModuleName, dbLastUC_DateTimeFormat, str );
+ GetDlgItemTextA(hwndDlg, IDC_DATETIME, str, _countof(str));
+ db_set_s(0,MODULENAME, dbLastUC_DateTimeFormat, str );
- LoadDBSettings();
- return TRUE;
- }
- break;
+ LoadDBSettings();
+ return TRUE;
}
+ break;
}
return FALSE;
}
@@ -64,7 +62,7 @@ int onOptInitialise(WPARAM wParam, LPARAM) odp.hInstance = hInst;
odp.szGroup.a = LPGEN("Contacts");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_LASTUC_OPT);
- odp.szTitle.a = msLastUC_ShowListName;
+ odp.szTitle.a = LPGEN("Recent Contacts");
odp.pfnDlgProc = DlgProcOptions;
odp.flags = ODPF_BOLDGROUPS;
Options_AddPage(wParam, &odp);
|