diff options
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) |