int CGraphWnd::RemovePoint(int graphnum, int index, BOOL bRedraw) { CGraphProps* graph = GetGraph(graphnum); if (graph == NULL) return -1; graph->RemovePoint(index, TRUE); if (graph_frame != NULL) { SGraphChange sgc; sgc.graphnum = graphnum; sgc.index = index; sgc.bRedraw = bRedraw; sgc.main_wnd_ptr = this; graph_frame->UpdateViews(GRAPH_POINT_REMOVED, &sgc); }; return index; }