diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-12-16 23:06:55 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-12-16 23:06:55 +0200 |
commit | 8142cedd8b857edd99a92f328e8b692b32bfeba6 (patch) | |
tree | 817d959e7b9b42c7321d70fd96795c2cbd96459a /messages.cpp | |
parent | 879305c459ebbf5204ccfc1cf8b257f5a725a729 (diff) |
save windows position
Diffstat (limited to 'messages.cpp')
-rw-r--r-- | messages.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/messages.cpp b/messages.cpp index 3601604..e8954e1 100644 --- a/messages.cpp +++ b/messages.cpp @@ -840,6 +840,7 @@ static BOOL CALLBACK DlgProcKeyPassword(HWND hwndDlg, UINT msg, WPARAM wParam, L { case WM_INITDIALOG: { + SetWindowPos(hwndDlg, 0, key_password_rect.left, key_password_rect.top, 0, 0, SWP_NOSIZE|SWP_SHOWWINDOW); TranslateDialogDefault(hwndDlg); string questionstr = "Please enter password for key with ID: "; questionstr += inkeyid; @@ -909,6 +910,11 @@ static BOOL CALLBACK DlgProcKeyPassword(HWND hwndDlg, UINT msg, WPARAM wParam, L DestroyWindow(hwndDlg); break; case WM_DESTROY: + { + GetWindowRect(hwndDlg, &key_password_rect); + DBWriteContactSettingDword(NULL, szGPGModuleName, "PasswordWindowX", key_password_rect.left); + DBWriteContactSettingDword(NULL, szGPGModuleName, "PasswordWindowY", key_password_rect.top); + } break; } |