| 508 | } |
| 509 | |
| 510 | CMainFrame *CFamiTrackerView::GetMainFrame() const { |
| 511 | #ifdef _DEBUG |
| 512 | ASSERT(GetParentFrame()->IsKindOf(RUNTIME_CLASS(CMainFrame))); |
| 513 | auto pMainFrame = (CMainFrame *)GetParentFrame(); |
| 514 | ASSERT_VALID(pMainFrame); |
| 515 | return pMainFrame; |
| 516 | #else |
| 517 | return static_cast<CMainFrame* >(GetParentFrame()); |
| 518 | #endif |
| 519 | } |
| 520 | |
| 521 | CFrameEditor *CFamiTrackerView::GetFrameEditor() const |
| 522 | { |