summaryrefslogtreecommitdiff
path: root/plugins/QuickSearch
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/QuickSearch
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/QuickSearch')
-rw-r--r--plugins/QuickSearch/quicksearch.dpr5
-rw-r--r--plugins/QuickSearch/sr_window.pas11
2 files changed, 2 insertions, 14 deletions
diff --git a/plugins/QuickSearch/quicksearch.dpr b/plugins/QuickSearch/quicksearch.dpr
index 621aaabbe0..c712d74d88 100644
--- a/plugins/QuickSearch/quicksearch.dpr
+++ b/plugins/QuickSearch/quicksearch.dpr
@@ -47,14 +47,9 @@ end;
function IconChanged(wParam:WPARAM;lParam:LPARAM):int;cdecl;
var
- mi:TCListMenuItem;
ttb:TTBButton;
begin
result:=0;
- FillChar(mi,SizeOf(mi),0);
- mi.flags :=CMIM_ICON;
- mi.hIcon:=IcoLib_GetIcon(QS_QS,0);
- CallService(MS_CLIST_MODIFYMENUITEM,MainMenuItem,tlparam(@mi));
// toptoolbar
if ServiceExists(MS_TTB_GETBUTTONOPTIONS)<>0 then
diff --git a/plugins/QuickSearch/sr_window.pas b/plugins/QuickSearch/sr_window.pas
index cfb87558a2..ef57002e26 100644
--- a/plugins/QuickSearch/sr_window.pas
+++ b/plugins/QuickSearch/sr_window.pas
@@ -818,10 +818,7 @@ begin
mnuhandle:=Menu_AddContactMenuItem(@mi);
end
else
- begin
- mi.flags :=CMIM_FLAGS;
- CallService(MS_CLIST_MODIFYMENUITEM,mnuhandle,LPARAM(@mi));
- end;
+ Menu_ModifyItem(mnuhandle, nil, INVALID_HANDLE_VALUE, 0);
end;
end;
@@ -834,11 +831,7 @@ begin
end;
// Due to stupid miranda logic, we need to clear tails at service processing, not earlier
if doit then
- begin
- mi.flags :=CMIM_FLAGS or CMIF_HIDDEN;
- CallService(MS_CLIST_MODIFYMENUITEM,mnuhandle,LPARAM(@mi));
- end;
-
+ Menu_ShowItem(mnuhandle, 0);
end
else
result:=0;