summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-09-16 09:25:18 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-09-16 09:25:18 +0300
commitf8e420612fcc94a7a3f2455f357d7d57ff31c62d (patch)
tree336a04f0a95cd6b9da2c98a4c64d32d232c1f4c0 /main.cpp
parentfdfc7bdd1090a495dce55f651f159592ce77bdb1 (diff)
modified: gpg_wrapper.cpp
modified: log.cpp modified: log.h modified: main.cpp modified: new_gpg.rc modified: options.cpp modified: resource.h
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index bc42087..6cc6d13 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1086,6 +1086,48 @@ static BOOL CALLBACK DlgProcLoadExistingKey(HWND hwndDlg,UINT msg,WPARAM wParam,
return FALSE;
}
+static BOOL CALLBACK DlgProcImportKeyDialog(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+{
+ switch (msg)
+ {
+ case WM_INITDIALOG:
+ {
+ TranslateDialogDefault(hwndDlg);
+ return TRUE;
+ }
+
+
+ case WM_COMMAND:
+ {
+ switch (LOWORD(wParam))
+ {
+ case IDC_IMPORT:
+ break;
+ default:
+ break;
+ }
+
+ break;
+ }
+
+ case WM_NOTIFY:
+ {
+ switch (((LPNMHDR)lParam)->code)
+ {
+ default:
+ break;
+ }
+ }
+ break;
+ case WM_CLOSE:
+ DestroyWindow(hwndDlg);
+ break;
+ case WM_DESTROY:
+ break;
+
+ }
+ return FALSE;
+}
extern HINSTANCE hInst;
@@ -1134,6 +1176,10 @@ void ShowSelectExistingKeyDialog()
SetForegroundWindow(hwndSelectExistingKey);
}
+void ShowImportKeyDialog()
+{
+ CreateDialog(hInst, MAKEINTRESOURCE(IDD_IMPORT_KEY), NULL, DlgProcImportKeyDialog);
+}