I keep running into a problem where i create a toolbar as a child of a rebar.
If i call CToolBar::SetButtonWidth before attaching the toolbar into a rebar band by CReBar::InsertBand
I get an assert failure caused by CReBar::OnToolBarResize where GedBand(hToolBar) will return -1 and propagate the value into CReBar::SetBandInfo which will assert
I keep running into a problem where i create a toolbar as a child of a rebar.
If i call
CToolBar::SetButtonWidth
before attaching the toolbar into a rebar band byCReBar::InsertBand
I get an assert failure caused by
CReBar::OnToolBarResize
whereGedBand(hToolBar)
will return-1
and propagate the value intoCReBar::SetBandInfo
which will assertSo had to amend as follows:
Please advise if this is the correct way to resolve and/or if there is any fix planned for this matter.
Thanks.
Thanks for the information.
I included the change you suggested into version 8.5.
Best regards,
David