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 /options.cpp | |
parent | 879305c459ebbf5204ccfc1cf8b257f5a725a729 (diff) |
save windows position
Diffstat (limited to 'options.cpp')
-rw-r--r-- | options.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/options.cpp b/options.cpp index c0debec..3ac57b9 100644 --- a/options.cpp +++ b/options.cpp @@ -639,6 +639,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP { case WM_INITDIALOG: { + SetWindowPos(hwndDlg, 0, load_key_rect.left, load_key_rect.top, 0, 0, SWP_NOSIZE|SWP_SHOWWINDOW); HANDLE hcnt = hContact; if(metaIsProtoMetaContacts(hcnt)) hcnt = metaGetMostOnline(hcnt); @@ -1221,6 +1222,11 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP DestroyWindow(hwndDlg); break; case WM_DESTROY: + { + GetWindowRect(hwndDlg, &load_key_rect); + DBWriteContactSettingDword(NULL, szGPGModuleName, "LoadKeyWindowX", load_key_rect.left); + DBWriteContactSettingDword(NULL, szGPGModuleName, "LoadKeyWindowY", load_key_rect.top); + } break; } |