if (notebook->m_skipNextPageChangeEvent)
{
- // this event was programatically generated by ChangeSelection() and thus must
+ // this event was programmatically generated by ChangeSelection() and thus must
// be skipped
notebook->m_skipNextPageChangeEvent = false;
// wxNotebook
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxNotebook,wxBookCtrlBase)
-
BEGIN_EVENT_TABLE(wxNotebook, wxBookCtrlBase)
EVT_NAVIGATION_KEY(wxNotebook::OnNavigationKey)
END_EVENT_TABLE()
m_padding = 0;
m_inSwitchPage = false;
- m_imageList = NULL;
m_themeEnabled = true;
}
}
/* Only cases 3) and 4) left */
- wxASSERT( m_imageList != NULL ); /* Just in case */
+ wxASSERT( HasImageList() ); /* Just in case */
/* Construct the new pixmap */
- const wxBitmap *bmp = m_imageList->GetBitmapPtr(image);
+ const wxBitmap *bmp = GetImageList()->GetBitmapPtr(image);
GdkPixmap *pixmap = bmp->GetPixmap();
GdkBitmap *mask = NULL;
if ( bmp->GetMask() )
if (imageId != -1)
{
- wxASSERT( m_imageList != NULL );
+ wxASSERT( HasImageList() );
- const wxBitmap *bmp = m_imageList->GetBitmapPtr(imageId);
+ const wxBitmap *bmp = GetImageList()->GetBitmapPtr(imageId);
GdkPixmap *pixmap = bmp->GetPixmap();
GdkBitmap *mask = NULL;
if ( bmp->GetMask() )