;hwnd - tray toolbar control handle. If 0, the function tries to find the control.;a - receives each icon info:;;;.tooltip - tooltip text.;;;.hidden - 0 if the icon is visible, 1 if hidden.;;;.idCommand - toolbar control button id.;;;.hwnd - handle of window that added the icon.;;;.hicon - icon handle.;;;.callbackMsg, .callbackId - on mouse and other events the window receives this message with this id.;mask - must be 3 to get all info. If some info not needed, use 0, 1 or 2. It will make faster.

when using the systray hide icons option only visible icons are enumerated.
how to get all active trayicons?

i once asked if it possible to use tray in a qm toolbar.

i think it is possible to simulate systray by hiding windows systray and having a timer function to capture current loaded systray items.

now iconpath will be extracted from item and added to qm systray bar 1.
toolbar function now checks which button has been clicked by mouse.
mouse click will be forwarded to hidden win systray icon to involve default action.