From 3b44da50baf9b321f040c5e5b5b0d7fb12ab7d5f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 8 Dec 2016 19:48:45 +0300 Subject: fix for dynamically created toolbar icons in Actman --- plugins/Actman/actman.dpr | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/Actman/actman.dpr') diff --git a/plugins/Actman/actman.dpr b/plugins/Actman/actman.dpr index bd2e759ccc..c54f7fbfef 100644 --- a/plugins/Actman/actman.dpr +++ b/plugins/Actman/actman.dpr @@ -180,6 +180,12 @@ begin end; end; +function DoAddButton(wParam:WPARAM;lParam:LPARAM):int;cdecl; +begin + Srmm_AddButton(pBBButton(lParam)); + result := 0; +end; + function DoCallContactService(wParam:WPARAM;lParam:LPARAM):int;cdecl; var ccs:PCCSDATA; @@ -241,6 +247,7 @@ begin CreateServiceFunction('Utils/OpenURL',@DoOpenUrl); CreateServiceFunction('Proto/CallContactService', @DoCallContactService); + CreateServiceFunction('Actman/ButtonsBar/AddButton', @DoAddButton); HookEvent(ME_SYSTEM_MODULESLOADED,@OnModulesLoaded); end; -- cgit v1.2.3