add functions to menubar for auto-close when mouse leave

This commit is contained in:
Jinhao
2017-08-28 21:09:04 +08:00
parent 5c28e72320
commit 64899a3d6a
4 changed files with 61 additions and 0 deletions

View File

@@ -1355,6 +1355,11 @@ namespace nana
impl_->mbuilder.renderer(rd);
}
window menu::handle() const
{
return (impl_->window_ptr ? impl_->window_ptr->handle() : nullptr);
}
void menu::_m_popup(window wd, const point& pos, bool called_by_menubar)
{
if (impl_->mbuilder.data().items.size())