From 2c8627c6f7c0762c36995028b9d7af346209e2be Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 12 Mar 2011 00:22:51 +0200 Subject: small ui inprovements --- options.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'options.cpp') diff --git a/options.cpp b/options.cpp index 6b773d3..f2b658a 100644 --- a/options.cpp +++ b/options.cpp @@ -644,6 +644,11 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP if(metaIsProtoMetaContacts(hcnt)) hcnt = metaGetMostOnline(hcnt); TranslateDialogDefault(hwndDlg); + { + string msg = "Load Public GPG Key for "; + msg += (char*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hcnt, 0); + SetWindowTextA(hwndDlg, msg.c_str()); + } bool isContactSecured(HANDLE); if(!hcnt) { @@ -653,7 +658,10 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP if(isContactSecured(hcnt)) SetDlgItemText(hwndDlg, IDC_ENABLE_ENCRYPTION, _T("Turn off encryption")); else + { SetDlgItemText(hwndDlg, IDC_ENABLE_ENCRYPTION, _T("Turn on encryption")); + CheckDlgButton(hwndDlg, IDC_ENABLE_ENCRYPTION, 1); + } if(hcnt) { tmp = UniGetContactSettingUtf(hcnt, szGPGModuleName, "GPGPubKey", _T("")); @@ -720,7 +728,9 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP TCHAR *tmp3 = mir_a2t(out.c_str()); str.clear(); str.append(tmp3); - string msg = "Load Public GPG Key (Key ID: "; + string msg = "Load Public GPG Key for "; + msg += (char*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hcnt, 0); + msg += " (Key ID: "; msg += hcontact_data[hcnt].key_in_prescense; msg += " found in prescense, and exists in keyring.)"; SetWindowTextA(hwndDlg, msg.c_str()); -- cgit v1.2.3