// check if we have something more than a simple text item
#if wxUSE_OWNER_DRAWN
+ bool makeItemOwnerDrawn = false;
if ( pItem->IsOwnerDrawn() )
{
#ifndef __DMC__
// set menu as ownerdrawn
m_ownerDrawn = true;
+ // also ensure that the new item itself is made owner drawn
+ makeItemOwnerDrawn = true;
+
ResetMaxAccelWidth();
}
// only update our margin for equals alignment to other item
return false;
}
+
+ if ( makeItemOwnerDrawn )
+ {
+ SetOwnerDrawnMenuItem(GetHmenu(), pos,
+ reinterpret_cast<ULONG_PTR>(pItem), TRUE);
+ }
}