diff options
author | René Schümann <white06tiger@gmail.com> | 2014-08-21 21:36:40 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2014-08-21 21:36:40 +0000 |
commit | 878aa77a04ff0269e02baab1b0d7e6a61baeb9c7 (patch) | |
tree | 44b4c986ec398fda32b34c59eaf925e67da68a62 /plugins/IEHistory/src/events.cpp | |
parent | b092b4ced1a4818bee8784a5a0b3884e3ec292db (diff) |
IEHistory:
- removed OnModulesLoaded, currently not needed.
* moved and fixed context menu code from OnModulesLoaded to Load(), now with Unicode support and only 1 translate^^
git-svn-id: http://svn.miranda-ng.org/main/trunk@10271 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEHistory/src/events.cpp')
-rw-r--r-- | plugins/IEHistory/src/events.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/plugins/IEHistory/src/events.cpp b/plugins/IEHistory/src/events.cpp index 2b73d127b1..5a5dd6a8c9 100644 --- a/plugins/IEHistory/src/events.cpp +++ b/plugins/IEHistory/src/events.cpp @@ -21,47 +21,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" #include "events.h" -HANDLE hModulesLoaded; HANDLE hOptionsInitialize; int HookEvents() { - hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); hOptionsInitialize = HookEvent(ME_OPT_INITIALISE, OnOptionsInitialize); return 0; } int UnhookEvents() { - UnhookEvent(hModulesLoaded); UnhookEvent(hOptionsInitialize); return 0; } -int OnModulesLoaded(WPARAM wParam, LPARAM lParam) -{ - CLISTMENUITEM menuItem = {0}; - menuItem.cbSize = sizeof(CLISTMENUITEM); - menuItem.flags = 0; - menuItem.pszContactOwner = NULL; //all contacts - menuItem.hIcon = hIcon; - - menuItem.position = 1000090000; - - menuItem.pszName = Translate("View &history"); - menuItem.pszService = MS_HISTORY_SHOWCONTACTHISTORY; - - Menu_AddContactMenuItem(&menuItem); - -/// @todo (White-Tiger#1#08/19/14): fully implement - menuItem.pszName = Translate("&System History"); - Menu_AddMainMenuItem(&menuItem); - //PLUGININFO pInfo = pluginInfo; - //pInfo.shortName = "IEView History Viewer"; - hOpenWindowsList = (HANDLE) CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0); - return 0; -} - int OnOptionsInitialize(WPARAM wParam, LPARAM lParam) { OPTIONSDIALOGPAGE odp = { sizeof(odp) }; |