diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-15 13:05:26 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-15 13:05:26 +0000 |
commit | a0ae9fc453e192325e153ace7c95bf6cab05f215 (patch) | |
tree | 5bcfa45eeba748c239f307057f448fc393772a28 /plugins/Db3x_mmap/src/ui.cpp | |
parent | 5b09157e8050f3f49de5701c0b892f6552105360 (diff) |
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
Diffstat (limited to 'plugins/Db3x_mmap/src/ui.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/ui.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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:
|