Introduction - If you have any usage issues, please Google them yourself
In the demo project, I create a simple graph with four series of data. It demonstrates different options of marker, such as shapes, colors, etc. When the cursor hits a marker, the background data value will be displayed by tool tip. Some API functions, such as CRgn::PtInRegion(), in HitTest() work best in device coordinates. It may be a good practice to convert the test-point into device coordinates. In the demo, I create one marker for each data series. If you want to use different marker option within one data series, you have to create one marker for each data point.
Packet : 389008marker_demo21.zip filelist
ChildFrm.cpp
ChildFrm.h
Graph.cpp
Graph.h
MainFrm.cpp
MainFrm.h
Marker.cpp
Marker.h
MarkerGraph.001
MarkerGraph.cpp
MarkerGraph.dsp
MarkerGraph.dsw
MarkerGraph.h
MarkerGraph.plg
MarkerGraph.rc
MarkerGraphDoc.cpp
MarkerGraphDoc.h
MarkerGraphView.cpp
MarkerGraphView.h
ReadMe.txt
res/
Resource.h
res/MarkerGraph.ico
res/MarkerGraph.rc2
res/MarkerGraphDoc.ico
res/Toolbar.bmp
StdAfx.cpp
StdAfx.h