From f8e420612fcc94a7a3f2455f357d7d57ff31c62d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 16 Sep 2010 09:25:18 +0300 Subject: modified: gpg_wrapper.cpp modified: log.cpp modified: log.h modified: main.cpp modified: new_gpg.rc modified: options.cpp modified: resource.h --- main.cpp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'main.cpp') 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); +} -- cgit v1.2.3