I found a small issue which can crash an application. Unfortunatelly I don't know how to submit patches to wxWidgets. Please apply this patch.
It's necessary to find the following code in the ..\src\msw\menuitem.cpp file
Code: Select all
#if wxUSE_OWNER_DRAWN
if ( IsOwnerDrawn() )
{
flagsOld |= MF_OWNERDRAW;
data = (LPCTSTR)this;
}
else
#endif //owner drawn
{
flagsOld |= MF_STRING;
data = (wxChar*) text.c_str();
}
Code: Select all
#if wxUSE_OWNER_DRAWN
if ( IsOwnerDrawn() )
{
flagsOld |= MF_OWNERDRAW;
flagsOld &= ~MF_STRING;
data = (LPCTSTR)this;
}
else
#endif //owner drawn
{
flagsOld |= MF_STRING;
flagsOld &= ~MF_OWNERDRAW;
data = (wxChar*) text.c_str();
}