summaryrefslogtreecommitdiff
path: root/plugins/Watrack/popup
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-22 21:27:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-22 21:27:15 +0000
commitfbfa53dcd5e9622613286c32ee2cab42aec0897e (patch)
treee7305d55dd44df287c22b3eac0b73bb456ff1672 /plugins/Watrack/popup
parent88790eed4ffd9ca555c8f9b73cb014a93b57a34f (diff)
Menu_ModifyItem applied to the pascal code
git-svn-id: http://svn.miranda-ng.org/main/trunk@14335 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/popup')
-rw-r--r--plugins/Watrack/popup/pop_vars.inc2
-rw-r--r--plugins/Watrack/popup/popups.pas14
2 files changed, 3 insertions, 13 deletions
diff --git a/plugins/Watrack/popup/pop_vars.inc b/plugins/Watrack/popup/pop_vars.inc
index 0eee668070..61e7edb9f7 100644
--- a/plugins/Watrack/popup/pop_vars.inc
+++ b/plugins/Watrack/popup/pop_vars.inc
@@ -19,7 +19,7 @@ var
IsFreeImagePresent:boolean;
var
hMenuInfo :THANDLE;
- ssmi,sic,
+ ssmi,
plStatusHook:THANDLE;
PopupPresent:bool;
onttbhook,
diff --git a/plugins/Watrack/popup/popups.pas b/plugins/Watrack/popup/popups.pas
index fe01254a62..cf149f0adf 100644
--- a/plugins/Watrack/popup/popups.pas
+++ b/plugins/Watrack/popup/popups.pas
@@ -312,7 +312,6 @@ end;
function NewPlStatus(wParam:WPARAM;lParam:LPARAM):int;cdecl;
var
- mi:TCListMenuItem;
flag:integer;
begin
result:=0;
@@ -333,22 +332,14 @@ begin
else // like 1
exit
end;
- FillChar(mi,sizeof(mi),0);
- mi.flags :=CMIM_FLAGS+flag;
- CallService(MS_CLIST_MODIFYMENUITEM,hMenuInfo,tlparam(@mi));
+ Menu_ModifyItem(hMenuInfo, nil, INVALID_HANDLE_VALUE, flag);
end;
end;
end;
function IconChanged(wParam:WPARAM;lParam:LPARAM):int;cdecl;
-var
- mi:TCListMenuItem;
begin
result:=0;
- FillChar(mi,SizeOf(mi),0);
- mi.flags :=CMIM_ICON;
- mi.hIcon :=IcoLib_GetIcon(IcoBtnInfo,0);
- CallService(MS_CLIST_MODIFYMENUITEM,hMenuInfo,tlparam(@mi));
if ActionList<>nil then
begin
mFreeMem(ActionList);
@@ -479,7 +470,7 @@ begin
sid.szDescription.a:='Music Info';
Skin_AddIcon(@sid);
DestroyIcon(sid.hDefaultIcon);
- sic:=HookEvent(ME_SKIN2_ICONSCHANGED,@IconChanged);
+ HookEvent(ME_SKIN2_ICONSCHANGED,@IconChanged);
FillChar(mi,SizeOf(mi),0);
mi.szPopupName.a:=PluginShort;
@@ -536,7 +527,6 @@ begin
CallService(MO_REMOVEMENUITEM,hMenuInfo,0);
UnhookEvent(plStatusHook);
DestroyServiceFunction(ssmi);
- UnhookEvent(sic);
freepopup;