summaryrefslogtreecommitdiff
path: root/plugins/Svc_vi
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-14 15:51:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-14 15:51:34 +0000
commite58823d961a630eb62e60d2ccb443761ba5f1704 (patch)
tree62d071be480d57af2a53f154a1468abe0b9449ff /plugins/Svc_vi
parent721aea0764451e985d575236205808bbef298244 (diff)
- all MS_CLIST_ADD*ITEM services replaced with Menu_Add*Item stubs.
- massive cleanup of the menu-related code git-svn-id: http://svn.miranda-ng.org/main/trunk@410 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_vi')
-rw-r--r--plugins/Svc_vi/main.cpp24
1 files changed, 9 insertions, 15 deletions
diff --git a/plugins/Svc_vi/main.cpp b/plugins/Svc_vi/main.cpp
index f6a9c7bd99..207e4fc433 100644
--- a/plugins/Svc_vi/main.cpp
+++ b/plugins/Svc_vi/main.cpp
@@ -121,21 +121,15 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
}
//Menu item
- //if (DBGetContactSettingByte(NULL, ModuleName, "MenuItem", TRUE)) {
- {
- CLISTMENUITEM mi = { 0 };
- mi.cbSize = sizeof(mi);
- mi.position = mi.popupPosition = 2000089999;
- mi.flags = 0;
- mi.hIcon = hiVIIcon;
- mi.pszName = Translate("Version Information");
- mi.pszService = MS_VERSIONINFO_MENU_COMMAND;
- CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&mi);
-// mi.pszPopupName = "Version Information";
-// mi.popupPosition = 2;
-// mi.pszName = "Test 1";
-// CallService(MS_CLIST_ADDMAINMENUITEM, 0, (LPARAM) &mi);
- }
+ CLISTMENUITEM mi = { 0 };
+ mi.cbSize = sizeof(mi);
+ mi.position = mi.popupPosition = 2000089999;
+ mi.flags = 0;
+ mi.hIcon = hiVIIcon;
+ mi.pszName = Translate("Version Information");
+ mi.pszService = MS_VERSIONINFO_MENU_COMMAND;
+ Menu_AddMainMenuItem(&mi);
+
if (LoadLibraryA("RichEd32.dll") == NULL)
MessageBoxA(NULL, "d'oh", "d'oh", MB_OK);