From e58823d961a630eb62e60d2ccb443761ba5f1704 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Jun 2012 15:51:34 +0000 Subject: - 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 --- plugins/Svc_vi/main.cpp | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'plugins/Svc_vi/main.cpp') 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); -- cgit v1.2.3