don't use wxStaticCast to wxBookCtrlBase -- it doesn't work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -765,8 +765,11 @@ void MyFrame::OnBookCtrl(wxBookCtrlBaseEvent& event)
|
|||||||
else if ( eventType == ei.typeChanging )
|
else if ( eventType == ei.typeChanging )
|
||||||
{
|
{
|
||||||
const int idx = event.GetOldSelection();
|
const int idx = event.GetOldSelection();
|
||||||
|
|
||||||
|
// NB: can't use wxStaticCast here as wxBookCtrlBase is not in
|
||||||
|
// wxRTTI
|
||||||
const wxBookCtrlBase * const
|
const wxBookCtrlBase * const
|
||||||
book = wxStaticCast(event.GetEventObject(), wxBookCtrlBase);
|
book = wx_static_cast(wxBookCtrlBase *, event.GetEventObject());
|
||||||
if ( idx != wxNOT_FOUND &&
|
if ( idx != wxNOT_FOUND &&
|
||||||
book && book->GetPageText(idx) == VETO_PAGE_NAME )
|
book && book->GetPageText(idx) == VETO_PAGE_NAME )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user