diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-09-07 13:18:42 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-09-07 13:18:42 +0000 |
commit | 47d2f64c59fbd3256b7af4cb28602a5cb61dc6c3 (patch) | |
tree | 11a16b98a655389f6be89d89fbcbdba2f8a40e95 | |
parent | ebf7ddda5fc7fa438a627a77f268f2f0d657619a (diff) |
Test plugin: fix project file & menu creation
git-svn-id: http://svn.miranda-ng.org/main/trunk@15292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-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>
|