From eecf5c454298ea207831c5ef22bd9913cfcd573f Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 8 Aug 2010 15:18:17 +0300 Subject: some black magic --- init.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'init.cpp') 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 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) -- cgit v1.2.3