Click here to Skip to main content
15,883,749 members
Articles / Desktop Programming / MFC

High-speed Charting Control

Rate me:
Please Sign up or sign in to vote.
4.95/5 (327 votes)
13 Jul 2010CPOL35 min read 4.2M   100.5K   787  
A flexible charting control to display 2D data
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>ChartDemo: CChartCrossHairCursor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>CChartCrossHairCursor Class Reference</h1><!-- doxytag: class="CChartCrossHairCursor" --><!-- doxytag: inherits="CChartCursor" -->Specialization of a <a class="el" href="class_c_chart_cursor.html" title="Base class for cursors which can be added to the chart control.">CChartCursor</a> class for a cross-hair cursor.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="_chart_cross_hair_cursor_8h-source.html">ChartCrossHairCursor.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for CChartCrossHairCursor:</div>
<div class="dynsection">

<p><center><img src="class_c_chart_cross_hair_cursor.png" usemap="#CChartCrossHairCursor_map" border="0" alt=""></center>
<map name="CChartCrossHairCursor_map">
<area href="class_c_chart_cursor.html" alt="CChartCursor" shape="rect" coords="0,0,148,24">
</map>
</div>

<p>
<a href="class_c_chart_cross_hair_cursor-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="94b2631efaf940e76aeb5dfc71135641"></a><!-- doxytag: member="CChartCrossHairCursor::OnMouseMove" ref="94b2631efaf940e76aeb5dfc71135641" args="(CPoint mousePoint)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_cross_hair_cursor.html#94b2631efaf940e76aeb5dfc71135641">OnMouseMove</a> (CPoint mousePoint)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when the mouse is moved over the plot area. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26ffb6c3dd890380307baa531be1e2c2"></a><!-- doxytag: member="CChartCrossHairCursor::Draw" ref="26ffb6c3dd890380307baa531be1e2c2" args="(CDC *pDC)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_cross_hair_cursor.html#26ffb6c3dd890380307baa531be1e2c2">Draw</a> (CDC *pDC)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws the cursor. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Specialization of a <a class="el" href="class_c_chart_cursor.html" title="Base class for cursors which can be added to the chart control.">CChartCursor</a> class for a cross-hair cursor. 
<p>
A cross-hair cursor is a simple cross displayed in the plotting area. The cursor moves along with the mouse (but stay within the bounds of the plot area).<br>
 To create a cross-hair cursor, call the CreateCrossHairCursor from the <a class="el" href="class_c_chart_ctrl.html" title="The main chart control class.">CChartCtrl</a> class. <hr>The documentation for this class was generated from the following files:<ul>
<li>E:/Sources Misc/ChartDemo/ChartCtrl/<a class="el" href="_chart_cross_hair_cursor_8h-source.html">ChartCrossHairCursor.h</a><li>E:/Sources Misc/ChartDemo/ChartCtrl/ChartCrossHairCursor.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jan 17 13:33:10 2010 for ChartDemo by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Belgium Belgium
I am a 29 years old guy and I live with my girlfriend in Hoegaarden, little city from Belgium well known for its white beer Smile | :) .
I studied as an industrial engineer in electronics but I oriented myself more towards software development when I started to work.
Currently I am working in a research centre in mechatronica. I mainly develop in C++ but I also do a bit of Java.
When I have so spare time, I like to read (mainly fantasy) and play electric guitar.

Comments and Discussions