From 8142cedd8b857edd99a92f328e8b692b32bfeba6 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 16 Dec 2010 23:06:55 +0200 Subject: save windows position --- messages.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'messages.cpp') 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; } -- cgit v1.2.3