summaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/init.cpp b/init.cpp
index 75ae28a..ea509cb 100644
--- a/init.cpp
+++ b/init.cpp
@@ -113,11 +113,16 @@ extern "C" int __declspec(dllexport) Unload(void)
return 0;
}
+void ShowLoadPublicKeyDialog();
int LoadKey(WPARAM w, LPARAM l)
{
- HANDLE hContact = (HANDLE)w;
- MessageBox(0, _T("Load GPG key function called"), _T("INFO"), MB_OK);
+ extern std::map<int, HANDLE> user_data;
+ extern int item_num;
+ item_num = 0; //black magic here
+ user_data[1] = (HANDLE)w;
+ ShowLoadPublicKeyDialog();
+// MessageBox(0, _T("Load GPG key function called"), _T("INFO"), MB_OK);
return 0;
}
int ToggleEncryption(WPARAM w, LPARAM l)