I may not drag the toolbar as a child to the Sizer. It has to be directly at the main window.
Actually, you can do either. There was a bug in the generator which incorrectly attached the toolbar to the frame, instead of the sizer. Which I've fixed now. (hopefully)