SVC ADD TOOLBARITEM
From LIVECHAT Developer Zone Wiki
- SVC_ADD_TOOLBARITEM
- Add new item to the add-ons tab of the main window ribbonbar.
- Parameters
- wParam
- NULL
- lParam
- LCTOOLBARITEM* toolbar
Return values
- API_SUCCESS – item added successfully
- API_ERROR – operation failed
Remarks
If item already exists it is updated.
Sample code
LCTOOLBARITEM item = {0};
item.cbSize = sizeof(LCTOOLBARITEM);
item.plugin_name = name();
item.id = 1;
item.caption = _T("Test button");
item.icon = LoadIcon(mInstance , MAKEINTRESOURCE(IDI_ICON1));
item.tooltip = _T("Sample tooltip");;
item.position = 0;
item.menu = 0;
item.service = _T("OnButtonClick");
call(SVC_ADD_TOOLBARITEM, 0, (LPARAM) &item);
