Dear Victor Nijegorodov Before of all, many thanks for your advice. The structure of solution is as follows: Calculations are to be done in CLASS A; and class CXXView : public CView, public CALSS A CXXView dose not know when these Calculations are done; When CLASS A send a message to CXXView, then CXXView execute other methods; The message is InvalidateRect; The problem is that CXXView dose not know when these Calculations are done. On the ther hand, I don't want to define a flag and check it continuously if Calculations are done or not? so CXXView has to await receiving InvalidateRect message from CLASS A I tried to define an instance of CXXView class within the CLASS A: CXXView* pCurrentView; CRect rect = pCurrentView->m_Rect_zone; HWND pWnd = pCurrentView->GetSafeHwnd(); InvalidateRect(NULL, NULL, FALSE); but I was not succeeded because of this compiler error: Uninitialized variable pCurrentView One macro or something like that is missing here (CXXView* pCurrentView;) which I am not familiar with that. Best Regards