diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2011-10-19 06:40:18 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2011-10-19 06:40:18 +0300 |
commit | 820307153b05c8ce93f5022c6772a748cca49909 (patch) | |
tree | 3d11630309433ad476f5a0f94d3ed5e451a3c869 /options.cpp | |
parent | 8fb8b0899be13c561d7d9c5606fd4cf273d025ce (diff) |
cipy to clipboard button, may not work yet
Diffstat (limited to 'options.cpp')
-rwxr-xr-x[-rw-r--r--] | options.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/options.cpp b/options.cpp index fe1c2c3..4b68d63 100644..100755 --- a/options.cpp +++ b/options.cpp @@ -353,6 +353,19 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA f.close();
}
break;
+ case IDC_COPY_KEY:
+ {
+ if(OpenClipboard(hwndDlg))
+ {
+ char *szKey = UniGetContactSettingUtf(NULL, szGPGModuleName, "GPGPubKey", "");
+ EmptyClipboard();
+ SetClipboardData(CF_OEMTEXT, szKey);
+ CloseClipboard();
+ mir_free(szKey);
+ }
+ else
+ MessageBoxA(0, "Error", "Failed to open clipboard", MB_OK);
+ }
case IDC_LOG_FILE_SET:
{
tmp = GetFilePath(_T("Set log file"), _T("*"), _T("LOG files"), 1);
@@ -366,7 +379,7 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
}
-
+
case WM_NOTIFY:
{
EnableWindow(GetDlgItem(hwndDlg, IDC_AUTO_EXCHANGE), (bIsMiranda09 && IsDlgButtonChecked(hwndDlg, IDC_JABBER_API)));
|