summaryrefslogtreecommitdiff
path: root/messages.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-12-16 23:23:29 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2010-12-16 23:23:29 +0200
commit4d6851c77b1d02968e83e60b1dfbed28cd729408 (patch)
tree6b98f2b123b23b4418c3248628890fd94262db99 /messages.cpp
parentbfc94324aca08f9ba3e89e678f17a01088f550c4 (diff)
parent8142cedd8b857edd99a92f328e8b692b32bfeba6 (diff)
Merge branch 'new_gpg' into new_gpg_autoexchange
Diffstat (limited to 'messages.cpp')
-rw-r--r--messages.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/messages.cpp b/messages.cpp
index c4c804c..4f058b2 100644
--- a/messages.cpp
+++ b/messages.cpp
@@ -885,6 +885,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;
@@ -954,6 +955,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;
}