A>void CSCView::OnDraw() A>{ A> CMainFrame* pFrame=(CMainFrame*)GetParentFrame(); A> // и т.д. A>} A>