// dynamic classes implementation
// ----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxObject)
-
// ----------------------------------------------------------------------------
// wxMenuItem
// ----------------------------------------------------------------------------
// resize the space so the BMP will fit. Without this, BMPs
// must be no larger or smaller than 16x16.
//
- if (m_bmpChecked.Ok())
+ if (m_bmpChecked.IsOk())
{
//
- // Is BMP height larger then text height?
+ // Is BMP height larger than text height?
//
size_t nAdjustedHeight = m_bmpChecked.GetHeight() +
wxSystemSettings::GetMetric(wxSYS_EDGE_Y);
// Draw the bitmap
// ---------------
//
- if (IsCheckable() && !m_bmpChecked.Ok())
+ if (IsCheckable() && !m_bmpChecked.IsOk())
{
if (eStatus & wxODChecked)
{
//
wxBitmap vBmp(GetBitmap(IsCheckable() ? ((eStatus & wxODChecked) != 0) : TRUE));
- if (vBmp.Ok())
+ if (vBmp.IsOk())
{
wxMemoryDC vDCMem(&rDC);