wxMenu *pSubMenu)
: wxMenuItemBase(pParentMenu, id, text, strHelp, kind, pSubMenu)
#if wxUSE_OWNER_DRAWN
- , wxOwnerDrawn(GetLabelFromText(text), kind == wxITEM_CHECK)
+ , wxOwnerDrawn(text, kind == wxITEM_CHECK)
#endif // owner drawn
{
Init();
: wxMenuItemBase(parentMenu, id, text, help,
isCheckable ? wxITEM_CHECK : wxITEM_NORMAL, subMenu)
#if wxUSE_OWNER_DRAWN
- , wxOwnerDrawn(GetLabelFromText(text), isCheckable)
+ , wxOwnerDrawn(text, isCheckable)
#endif // owner drawn
{
Init();
start, // the first radio group item
end, // the last one
pos, // the one to check
- MF_BYPOSITION | flags) )
+ MF_BYPOSITION) )
{
wxLogLastError(_T("CheckMenuRadioItem"));
}
{
if ( ::CheckMenuItem(hmenu,
GetRealId(),
- MF_BYCOMMAND | flags) == -1 )
+ MF_BYCOMMAND | flags) == (DWORD)-1 )
{
wxLogLastError(wxT("CheckMenuItem"));
}