diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-08 19:48:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-08 19:48:45 +0300 |
commit | 3b44da50baf9b321f040c5e5b5b0d7fb12ab7d5f (patch) | |
tree | 5a3e2e998a0e944e5314d0d8070143063cf00fab /plugins/Actman/actman.dpr | |
parent | 615db90328ab27beb166c3db19a7a0326fb1345a (diff) |
fix for dynamically created toolbar icons in Actman
Diffstat (limited to 'plugins/Actman/actman.dpr')
-rw-r--r-- | plugins/Actman/actman.dpr | 7 |
1 files changed, 7 insertions, 0 deletions
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;
|