button->curState = wxAUI_BUTTON_STATE_HOVER;
Refresh();
Update();
+
m_hoverButton = button;
return;
}
wxWindow* wxAuiNotebook::GetCurrentPage () const
{
- return GetPage(GetSelection());
+ const int sel = GetSelection();
+
+ return sel == wxNOT_FOUND ? NULL : GetPage(sel);
}
int wxAuiNotebook::ChangeSelection(size_t n)