diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-28 00:01:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-28 00:02:08 +0300 |
commit | 874bfd75183b781c0087087502133f5bea8ade1c (patch) | |
tree | 4f7c8c08ee71005b69574ae3820ddd7611894f52 /plugins/Watrack | |
parent | 7e852468c6d1a45cd4c78c4744b74e51d29e26b0 (diff) |
Menu_ModifyItem to receive icolib handle, not HICON
Diffstat (limited to 'plugins/Watrack')
-rw-r--r-- | plugins/Watrack/i_gui.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Watrack/i_gui.inc b/plugins/Watrack/i_gui.inc index 0128d7c566..3137780f27 100644 --- a/plugins/Watrack/i_gui.inc +++ b/plugins/Watrack/i_gui.inc @@ -46,9 +46,9 @@ var p:PAnsiChar;
begin
if f1<>0 then
- Menu_ModifyItem(hMenuDisable, 'Enable WATrack', IcoLib_GetIcon(IcoBtnDisable,0), f1)
+ Menu_ModifyItem(hMenuDisable, 'Enable WATrack', IcoLib_GetIconHandle(IcoBtnDisable), f1)
else
- Menu_ModifyItem(hMenuDisable, 'Disable WATrack', IcoLib_GetIcon(IcoBtnEnable,0));
+ Menu_ModifyItem(hMenuDisable, 'Disable WATrack', IcoLib_GetIconHandle(IcoBtnEnable));
if ServiceExists(MS_TTB_SETBUTTONSTATE) then
begin
@@ -72,7 +72,7 @@ var ttb:m_api.TTBButton;
begin
result:=0;
- Menu_ModifyItem(hMenuDisable, nil, IcoLib_GetIcon(IcoBtnEnable,0));
+ Menu_ModifyItem(hMenuDisable, nil, IcoLib_GetIconHandle(IcoBtnEnable));
// toptoolbar
if ServiceExists(MS_TTB_GETBUTTONOPTIONS) then
|