func (f *frame) SetMenuBar(menubar MenuBar) { p := ptr(f) if f == nil { return } globalObjectTable.unhold(menubar) C.wxFrame_SetMenuBar(p, ptr(menubar)) }
func (f *frame) SetMenuBar(menubar MenuBar) { p := wxPtr(f) if f == nil { return } menubar.unhold() C.wxFrame_SetMenuBar(p, wxPtr(menubar)) }