SVC ADD STATUSBARITEM
From LIVECHAT Developer Zone Wiki
- SVC_ADD_STATUSBARITEM
- Add new item to the protocols status bar.
- Parameters
- wParam
- NULL
- lParam
- LCSTATUSBARITEM* item
Return values
- API_SUCCESS – item added successfully
- API_ERROR – operation failed
Sample code
HBITMAP hBitmap = ::LoadBitmap(mInstance, MAKEINTRESOURCE(IDB_BITMAP) );
CImageList list;
list.Create(16, 16, ILC_COLOR24 | ILC_MASK, 0, 0);
list.Add(CBitmap::FromHandle( hBitmap ), RGB(255, 0, 255));
LCSTATUSBARITEM item = {0};
item.cbSize = sizeof(LCSTATUSBARITEM);
item.plugin_name = name();
item.caption = _T("Sample caption");
item.id = 1000;
item.service = _T("OnItemClick");
item.image_list = list.Detach();
call(SVC_ADD_STATUSBARITEM, 0, (LPARAM) &item);
