i'd like to draw a cross on all the views except the one one view which is the reference-view.
the crosses would be draw in the same coordinates of the original cursor.
in case the original cursor is out of the reference-view rect the crosses should be erased from the rest of the viewes.
i hope i was clear enough and understandable.
i started doing it but something is wrong:
void CDblCursorView::OnMouseMove(UINT nFlags, CPoint point)
CMultiDocTemplate* pMDT = ((CDblCursorApp*)AfxGetApp())->GetDocTemplate();
POSITION pos = pMDT->GetFirstDocPosition();
if(pDoc = (CDblCursorDoc*)pMDT->GetNextDoc(pos))
POSITION viewPos = pDoc->GetFirstViewPosition();
if(pView = (CDblCursorView*)pDoc->GetNextView(viewPos))
if(pView == this)
void CDblCursorView::DrawVirtualCross(CPoint point)
m_lastRect = rect;
as u can see i save the last rect position of the ellipse and invalidate it but the ellipse is drawing while partly erased on flickered.
your help is appreciated