Added set_as_owner_drawn() for the code universality

This commit is contained in:
YuSanka 2019-05-03 16:14:26 +02:00
parent 2affa48178
commit 30dc689d35
3 changed files with 22 additions and 7 deletions

View file

@ -25,6 +25,14 @@ using Slic3r::GUI::from_u8;
wxDEFINE_EVENT(wxCUSTOMEVT_TICKSCHANGED, wxEvent);
wxDEFINE_EVENT(wxCUSTOMEVT_LAST_VOLUME_IS_DELETED, wxCommandEvent);
void set_as_owner_drawn(wxMenu* menu)
{
#ifdef __WXMSW__
// this function is implemented only for MSW (in Prusa/wxWidgets fork)
menu->SetOwnerDrawn(true);
#endif
}
std::map<int, std::string> menuitem_bitmaps;
static std::string empty_str = "";