diff options
-rw-r--r-- | plugins/testplugin/src/testplug.cpp | 8 | ||||
-rw-r--r-- | 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 @@ </ItemGroup>
<PropertyGroup Label="Globals">
<ProjectName>testplug</ProjectName>
+ <ProjectGuid>{ED73DD70-FEEA-4E92-B436-168127AD8B50}</ProjectGuid>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>Unicode</CharacterSet>
+ <PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
|