diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-08 15:18:17 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-08 15:18:17 +0300 |
commit | eecf5c454298ea207831c5ef22bd9913cfcd573f (patch) | |
tree | 8daf7a175fe0b9642b3abf3181e240409f5dd195 /init.cpp | |
parent | 0df8e1c940479d1d9edd93f95483a5c1180e7bd5 (diff) |
some black magic
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) |