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 /plugins/testplugin/src | |
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
Diffstat (limited to 'plugins/testplugin/src')
-rw-r--r-- | plugins/testplugin/src/testplug.cpp | 8 |
1 files changed, 3 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;
|