+wxMDIChildFrame * wxMDIParentFrame::GetActiveChild() const
+ {
+ wxGenericMDIChildFrame *pGFrame = wxGenericMDIParentFrame::GetActiveChild();
+ wxMDIChildFrame *pFrame = wxDynamicCast(pGFrame, wxMDIChildFrame);
+
+ wxASSERT_MSG(!(pFrame == NULL && pGFrame != NULL), wxT("Active frame is class not derived from wxMDIChildFrame!"));
+
+ return pFrame;
+ }
+