E Dyot wrote: Now, the problem I have is, *how* do I pass the data to - and to *which* routine - in order to paint, say, a box on the screen, using that data? Handle the OnDraw function in your CView based class. From OnDraw, you can call GetDocument() to retrieve a pointer to your document.
CMyView::OnDraw(CDC* pDC)
{
// Grab the doc
CMyDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// Get the doc data
pDoc->GetDataUsedToDrawStuff();
// You can use clipping functions to help eliminate unnecessary drawing
if (pDC->RectVisible(blah))
// Draw as you see fit using the various CDC GDI/drawing functions
pDC->SelectObject(brush/font/pen);
pDC->FrameRect(blah);
pDC->TextOut(blah);
etc...
}
:suss: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!