How to create a toolbar

I’ve found a sdk sample with creating a dockbar and I thought a toolbars are created the same way but they are not.
So how to use RhinoUiToolBarManager, how to add own collection(looks like it’s required) and create a toolbars in c++?

Use the Toolbars command to create a custom RUI file and include that RUI file with your plug-in. There are several posts on this forum about installing RUI files with your plug-ins.