I want to set the dockbar is between the Menu and the Command. ( MFC C++ )
Like below…
Is it possible ?
I want to set the dockbar is between the Menu and the Command. ( MFC C++ )
Like below…
Is it possible ?
Yes it is.
Review the following SDK sample:
https://github.com/mcneel/Rhino5Samples_CPP/tree/master/SampleDockbar
You will want to change the plug-in’s OnLoadPlugIn
member to look like this:
BOOL CSampleDockbarPlugIn::OnLoadPlugIn()
{
// Ask Rhino's DockBarManager to create our dockbar
CRhinoUiDockBar* pDockbar = RhinoUiDockBarManager().CreateRhinoDockBar(
RUNTIME_CLASS(CSampleRhinoDockbar),
PlugInID(),
false,
AFX_IDW_DOCKBAR_TOP,
CBRS_ALIGN_TOP,
NULL,
CBRS_TOOLTIPS | CBRS_SIZE_DYNAMIC | CBRS_FLYBY | CBRS_TOP
);
return TRUE;
}
Does this help?
Thank you for help.
I went to study this example.
But …
Which parameter can set the dockbar is located in the command view top ?
Show your dockbar like this:
RhinoUiDockBarManager().ShowDockBar(CSampleRhinoDockbar().DockBarID(), true, false);
RhinoUiDockBarManager().DockDockBar(CSampleRhinoDockbar().DockBarID(), AFX_IDW_DOCKBAR_TOP);
In this example:
https://github.com/mcneel/Rhino5Samples_CPP/tree/master/SampleDockbar
you’d modify the command…