summaryrefslogtreecommitdiff
path: root/plugins/Utils.pas/editwrapper.pas
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-11-27 21:02:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-11-27 21:02:54 +0300
commit0ebb1294ecaf4d62ad6b3e911be6275248c05354 (patch)
tree5560ce9ecc74ab5357279cd15aa9704d4d9d8c30 /plugins/Utils.pas/editwrapper.pas
parentc6b6e8a4b79e906f77b1f3be43e939316e1d912f (diff)
correct type for ServiceExists() - bool
Diffstat (limited to 'plugins/Utils.pas/editwrapper.pas')
-rw-r--r--plugins/Utils.pas/editwrapper.pas12
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/Utils.pas/editwrapper.pas b/plugins/Utils.pas/editwrapper.pas
index 034a45e15b..61d1c60277 100644
--- a/plugins/Utils.pas/editwrapper.pas
+++ b/plugins/Utils.pas/editwrapper.pas
@@ -127,16 +127,12 @@ begin
ShowWindow(GetDlgItem(Dialog,idhide),SW_HIDE);
wnd:=GetDlgItem(Dialog,IDC_SCRIPT_HELP);
- if ServiceExists(MS_VARS_FORMATSTRING)<>0 then
+ if ServiceExists(MS_VARS_FORMATSTRING) then
begin
SendMessage(wnd,BM_SETIMAGE,IMAGE_ICON,
CallService(MS_VARS_GETSKINITEM,0,VSI_HELPICON));
SendMessage(wnd,BUTTONADDTOOLTIP,
CallService(MS_VARS_GETSKINITEM,0,VSI_HELPTIPTEXT),0);
-{
- SendMessage(wnd,BM_SETIMAGE,IMAGE_ICON,
- CallService(MS_SKIN_LOADICON,SKINICON_OTHER_HELP,0));
-}
end
else
begin
@@ -414,16 +410,12 @@ begin
ShowWindow(GetDlgItem(Dialog,idhide),SW_HIDE);
wnd:=GetDlgItem(Dialog,IDC_SCRIPT_HELP);
- if ServiceExists(MS_VARS_FORMATSTRING)<>0 then
+ if ServiceExists(MS_VARS_FORMATSTRING) then
begin
SendMessage(wnd,BM_SETIMAGE,IMAGE_ICON,
CallService(MS_VARS_GETSKINITEM,0,VSI_HELPICON));
SendMessage(wnd,BUTTONADDTOOLTIP,
CallService(MS_VARS_GETSKINITEM,0,VSI_HELPTIPTEXT),0);
-{
- SendMessage(wnd,BM_SETIMAGE,IMAGE_ICON,
- CallService(MS_SKIN_LOADICON,SKINICON_OTHER_HELP,0));
-}
end
else
begin