From 47d2f64c59fbd3256b7af4cb28602a5cb61dc6c3 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 7 Sep 2015 13:18:42 +0000 Subject: Test plugin: fix project file & menu creation git-svn-id: http://svn.miranda-ng.org/main/trunk@15292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/testplugin/src/testplug.cpp | 8 +++----- plugins/testplugin/testplug_12.vcxproj | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/testplugin/src/testplug.cpp b/plugins/testplugin/src/testplug.cpp index 2c98789edc..2edf570fec 100644 --- a/plugins/testplugin/src/testplug.cpp +++ b/plugins/testplugin/src/testplug.cpp @@ -57,14 +57,12 @@ extern "C" __declspec(dllexport) int Load() { mir_getLP(&pluginInfo); - CLISTMENUITEM mi = {0}; - + CMenuItem mi; CreateServiceFunction("TestPlug/MenuCommand", PluginMenuCommand); - mi.cbSize = sizeof(mi); mi.position = -0x7FFFFFFF; mi.flags = CMIF_TCHAR; - mi.hIcon = LoadSkinnedIcon(SKINICON_OTHER_MIRANDA); - mi.ptszName = LPGENT("&Test Plugin..."); + mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_MIRANDA); + mi.name.t = LPGENT("&Test Plugin..."); mi.pszService = "TestPlug/MenuCommand"; Menu_AddMainMenuItem(&mi); return 0; diff --git a/plugins/testplugin/testplug_12.vcxproj b/plugins/testplugin/testplug_12.vcxproj index c8706ac25b..e4a280f09a 100644 --- a/plugins/testplugin/testplug_12.vcxproj +++ b/plugins/testplugin/testplug_12.vcxproj @@ -23,11 +23,13 @@ testplug + {ED73DD70-FEEA-4E92-B436-168127AD8B50} DynamicLibrary Unicode + v120 DynamicLibrary -- cgit v1.2.3