// but we have to special case wxNB_TOP since it is zero...
if ( side == wxNB_TOP)
{
- if ( nbStyle != 0 && nbStyle & wxNB_LEFT|wxNB_RIGHT|wxNB_BOTTOM)
+ if ( nbStyle != 0 && nbStyle & (wxNB_LEFT|wxNB_RIGHT|wxNB_BOTTOM))
{
return otherMargin;
}
m_macControl = NULL ;
}
-wxSize wxNotebook::CalcSizeFromPage(const wxSize& sizePage)
+wxSize wxNotebook::CalcSizeFromPage(const wxSize& sizePage) const
{
wxSize sizeTotal = sizePage;
wxNotebookEvent changing(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, m_windowId,
::GetControl32BitValue(control) - 1, m_nSelection);
changing.SetEventObject(this);
- ProcessEvent(changing);
+ GetEventHandler()->ProcessEvent(changing);
if(changing.IsAllowed())
{
::GetControl32BitValue(control) - 1, m_nSelection);
event.SetEventObject(this);
- ProcessEvent(event);
+ GetEventHandler()->ProcessEvent(event);
}
}
}