summaryrefslogtreecommitdiff
path: root/plugins/IEHistory/src/IEHistory.cpp
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-08-21 21:36:40 +0000
committerRené Schümann <white06tiger@gmail.com>2014-08-21 21:36:40 +0000
commit878aa77a04ff0269e02baab1b0d7e6a61baeb9c7 (patch)
tree44b4c986ec398fda32b34c59eaf925e67da68a62 /plugins/IEHistory/src/IEHistory.cpp
parentb092b4ced1a4818bee8784a5a0b3884e3ec292db (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/IEHistory.cpp')
-rw-r--r--plugins/IEHistory/src/IEHistory.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/plugins/IEHistory/src/IEHistory.cpp b/plugins/IEHistory/src/IEHistory.cpp
index b12c216810..3427308ada 100644
--- a/plugins/IEHistory/src/IEHistory.cpp
+++ b/plugins/IEHistory/src/IEHistory.cpp
@@ -67,10 +67,23 @@ extern "C" int __declspec(dllexport) Load(void)
if ((hUxTheme = LoadLibraryA("uxtheme.dll")) != 0)
MyEnableThemeDialogTexture = (BOOL(WINAPI *)(HANDLE, DWORD))GetProcAddress(hUxTheme, "EnableThemeDialogTexture");
- //all initialization here
+ /// all initialization here
hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_HISTORYICON));
+ hOpenWindowsList = (HANDLE) CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0);
InitServices();
+
+ /// menu items
+ CLISTMENUITEM menuItem = { sizeof(CLISTMENUITEM) };
+ menuItem.ptszName = LPGENT("View &history");
+ menuItem.flags = CMIF_TCHAR;
+ menuItem.position = 1000090000;
+ menuItem.hIcon = hIcon;
+ menuItem.pszService = MS_HISTORY_SHOWCONTACTHISTORY;
+ Menu_AddContactMenuItem(&menuItem);
+/// @todo (White-Tiger#1#08/19/14): fully implement System History someday^^
+ menuItem.ptszName = LPGENT("&System History");
+ Menu_AddMainMenuItem(&menuItem);
HookEvents();
return 0;