X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9cb79cbd693223d9079b91ad814bac39fa3a986..2ff29ddf87c7935a609306057063d39141130da3:/src/msw/menuitem.cpp diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index e2063200cd..e4a9d1beb9 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -170,9 +170,13 @@ void wxMenuItem::Init() #undef SYS_COLOR - // we don't want normal items be owner-drawn + // setting default colors switched ownerdraw on: switch it off again ResetOwnerDrawn(); + // switch ownerdraw back on if using a non default margin + if ( GetId() != wxID_SEPARATOR ) + SetMarginWidth(GetMarginWidth()); + // tell the owner drawing code to to show the accel string as well SetAccelString(m_text.AfterFirst(_T('\t'))); #endif // wxUSE_OWNER_DRAWN