summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-15 23:35:06 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-15 23:35:06 +0300
commit6e0a54a479bbcb862df2f69945aa5e3d16ad9db2 (patch)
tree5ba673c66eadb72be7d7dc2a76292a671ce62540 /main.cpp
parent101a521ee025001c119462915d3497e5f112809b (diff)
modified: init.cpp
modified: main.cpp modified: new_gpg.rc modified: resource.h
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp25
1 files changed, 15 insertions, 10 deletions
diff --git a/main.cpp b/main.cpp
index 8db3d14..a339d6d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -19,16 +19,6 @@
#include "commonheaders.h"
-void test()
-{
- string out;
- DWORD code;
- TCHAR cmd[512];
- _tcscpy(cmd, _T("--list-secret-keys"));
-// pxExecute(cmd, "", &out, &code);
-// MessageBoxA(0, out.c_str(), "test", MB_OK);
-}
-
HWND hwndFirstRun = NULL, hwndSetDirs = NULL, hwndNewKey = NULL, hwndKeyGen = NULL, hwndSelectExistingKey = NULL;
@@ -182,6 +172,17 @@ static BOOL CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
DBWriteContactSettingByte(NULL, szModuleName, "FirstRun", 0);
DestroyWindow(hwndDlg);
break;
+ case IDC_OTHER:
+ {
+ void ShowLoadPublicKeyDialog();
+ extern map<int, HANDLE> user_data;
+ extern int item_num;
+ item_num = 0; //black magic here
+ user_data[1] = 0;
+ MessageBox(0, _T("Set secret key in following dialog.\nI do not know if password protected key is work..."), _T("Info"), MB_OK);
+ ShowLoadPublicKeyDialog();
+ }
+ break;
}
break;
}
@@ -839,6 +840,10 @@ void FirstRun()
ShowSetDirsDialog();
}
+void InitCheck()
+{
+}
+
void ImportKey()
{
extern wstring new_key;