•///////////////////////////////////////////////
•//
CGrapheditView message handlers
•
•void
CGrapheditView::OnLButtonDown(UINT nFlags, CPoint point)
•{
• CGrapheditDoc*
pDoc = GetDocument();
• ASSERT_VALID(pDoc);
• pDoc->m_grafo.Nodi.push_back(Nodo(point.x,point.y));
•}
•
•In risposta ad un click del
bottone sinistro del mouse sulla finestra view, l’applicazione crea un nuovo nodo nel documento
corrispondete, posizionato sul punto di
click.