From a0ae9fc453e192325e153ace7c95bf6cab05f215 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 15 Feb 2014 13:05:26 +0000 Subject: added 'Set password' button on the database options' page git-svn-id: http://svn.miranda-ng.org/main/trunk@8127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/ui.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/Db3x_mmap/src') diff --git a/plugins/Db3x_mmap/src/ui.cpp b/plugins/Db3x_mmap/src/ui.cpp index 73ec799079..a8fedea835 100644 --- a/plugins/Db3x_mmap/src/ui.cpp +++ b/plugins/Db3x_mmap/src/ui.cpp @@ -260,8 +260,12 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP return TRUE; case WM_COMMAND: - if (HIWORD(wParam) == BN_CLICKED && (HWND)lParam == GetFocus()) - SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); + if (HIWORD(wParam) == BN_CLICKED && (HWND)lParam == GetFocus()) { + if (LOWORD(wParam) == IDC_USERPASS) + CallService(MS_DB_CHANGEPASSWORD, 0, 0); + else + SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); + } break; case WM_NOTIFY: -- cgit v1.2.3