Il 20/feb/2015 02:46 <jscipione@xxxxxxxxx> ha scritto: > > Add private BMenu::_SetMenuLayout() method. Set TExpandoMenuBar > as a friend class in BMenu to call this method. A little hacky, > but, this keeps SetMenuLayout() from being exposed as part of > the public API. > Noce work! To avoid this friend declaration, you could have a look at MenuPrivate.h. Basically, you could add a MenuPrivate::SetMenuPrivate() which would call the respective BMenu method. Since MenuPrivate is already friend of BMenu you don't have to add TMenuBar, too. >