void CMyView::OnDraw(CDC* pDC) { // ... // После того, как всё отрисовал: SetEvent( ((CMainFrame*)AfxGetApp()->m_pMainWnd)->m_hEventDrawed ); }