Applied [ 1059554 ] patch for [1028659] fixes a couple of bugs with menus

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-02-12 10:42:00 +00:00
parent 77b88df26f
commit 271fa25083
2 changed files with 7 additions and 3 deletions

View File

@@ -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