8 marzo 2001
Claudio Rocchini
28
Gestore OnDraw custom
•void CGrapheditView::OnDraw(CDC* pDC)
•{
• vector<Nodo>::iterator  i;
• const int R = 3;
• CGrapheditDoc* pDoc = GetDocument();
• ASSERT_VALID(pDoc);
• for(i=pDoc->m_grafo.Nodi.begin();
•      i!=pDoc->m_grafo.Nodi.end();++i)
• pDC->Ellipse(i->p.x-R,i->p.y-R,
•                   i->p.x+R,i->p.y+R);
•}