资源简介
是一个开源的custom Control,用于做质谱分析等工具的界面
代码片段和文件信息
/*
*
* ChartAxis.cpp
*
* Written by C閐ric Moonen (cedric_moonen@hotmail.com)
*
*
*
* This code may be used for any non-commercial and commercial purposes in a compiled form.
* The code may be redistributed as long as it remains unmodified and providing that the
* author name and this disclaimer remain intact. The sources can be modified WITH the author
* consent only.
*
* This code is provided without any garanties. I cannot be held responsible for the damage or
* the loss of time it causes. Use it at your own risks
*
* An e-mail to notify me that you are using this code is appreciated also.
*
*
* History:
* - 16/05/2006: Bug fix in ScreenToValue function
* - 18/05/2006: Added support for panning
* - 11/08/2006: Changes done for the automatic axis (Un/RegisterSeries ...)
* - 12/08/2006: Tick increment can be set manually also
* - 08/01/2008: Bug fix in how the logarithmic labels are displayed (trailing 0)
* - 08/02/2008: Added first version of date/time axis.
* - 15/02/2008: Removed compiler warnings for VC2005.
* - 18/02/2008: Added the possibility to disable the zoom for a specific axis and
* set a limit on the zoom.
* - 21/02/2008: Fixed a bug for automatic date/time axis.
* - 21/02/2008: Fixed a bug the axis label weren‘t displayed anymore.
* - 29/02/2008: Automatic axis will react when points are suppressed too and we avoid
* multiple refresh if several axes are updated (thanks to Bruno Lavier).
* - 21/03/2008: Added a scrollbar.
* - 01/08/2008: Bug fix tick labels for log axis were not always correct: rounding
* error (thanks to Andrej Ritter).
*
*/
//#define _WIN32_COM
#include “stdafx.h“
#include “ChartAxis.h“
#include “ChartAxisLabel.h“
#include “ChartGrid.h“
#include “ChartCtrl.h“
#include “Math.h“
#include
using namespace std;
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CChartAxis::CChartAxis(CChartCtrl* pParentbool bHoriz):CChartobject(pParent)
{
m_AxisType = atStandard;
m_bIsHorizontal = bHoriz;
m_bIsInverted = false;
m_bIsAutomatic = false;
m_bIsSecondary = false;
m_MaxValue = m_UnzoomMax = 10;
m_MinValue = m_UnzoomMin = 0;
m_bAutoTicks = true;
m_TickIncrement = 1;
m_FirstTickVal = 0;
m_DecCount = 0;
m_StartPos = m_EndPos = 0;
m_nFontSize = 80;
m_strFontName = _T(“Microsoft Sans Serif“);
m_pAxisGrid = new CChartGrid(pParentbHoriz);
m_pAxisLabel = new CChartAxisLabel(pParentbHoriz);
m_bAutoMargin = true;
m_iMarginSize = 0;
m_TextColor = m_objectColor;
m_strDTTickFormat = _T(“%d %b“);
m_bAutoTickFormat = true;
m_baseInterval = tiDay;
m_iDTTickIntervalMult = 1;
m_bZoomEnabled = true;
m_dZoomLim
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 28493 2008-08-15 11:43 ChartCtrl_source\ChartAxis.cpp
文件 6417 2008-08-15 11:39 ChartCtrl_source\ChartAxis.h
文件 3833 2008-08-15 10:55 ChartCtrl_source\ChartAxisLabel.cpp
文件 1697 2008-08-15 10:38 ChartCtrl_source\ChartAxisLabel.h
文件 7059 2008-07-17 20:08 ChartCtrl_source\ChartBarSerie.cpp
文件 2659 2008-07-17 19:57 ChartCtrl_source\ChartBarSerie.h
文件 22890 2008-08-20 20:03 ChartCtrl_source\ChartCtrl.cpp
文件 5759 2008-08-17 09:47 ChartCtrl_source\ChartCtrl.h
文件 3765 2008-04-06 14:51 ChartCtrl_source\ChartGradient.cpp
文件 987 2008-04-06 14:37 ChartCtrl_source\ChartGradient.h
文件 2378 2008-04-07 19:39 ChartCtrl_source\ChartGrid.cpp
文件 1332 2008-01-26 15:05 ChartCtrl_source\ChartGrid.h
文件 8437 2008-08-15 10:55 ChartCtrl_source\ChartLegend.cpp
文件 1963 2008-08-15 10:38 ChartCtrl_source\ChartLegend.h
文件 5641 2008-08-12 19:56 ChartCtrl_source\ChartLineSerie.cpp
文件 1484 2008-04-06 15:17 ChartCtrl_source\ChartLineSerie.h
文件 1605 2008-04-07 19:37 ChartCtrl_source\Chartob
文件 2451 2008-04-07 19:37 ChartCtrl_source\Chartob
文件 7706 2008-07-07 15:29 ChartCtrl_source\ChartPointsSerie.cpp
文件 1743 2008-04-07 19:44 ChartCtrl_source\ChartPointsSerie.h
文件 6338 2008-08-18 20:05 ChartCtrl_source\ChartScrollBar.cpp
文件 1422 2008-08-15 11:39 ChartCtrl_source\ChartScrollBar.h
文件 13661 2008-08-15 10:55 ChartCtrl_source\ChartSerie.cpp
文件 3849 2008-08-15 10:40 ChartCtrl_source\ChartSerie.h
文件 815 2008-08-15 10:32 ChartCtrl_source\ChartString.h
文件 4692 2008-04-14 20:17 ChartCtrl_source\ChartSurfaceSerie.cpp
文件 1975 2008-04-07 19:48 ChartCtrl_source\ChartSurfaceSerie.h
文件 4039 2008-08-15 10:55 ChartCtrl_source\Chartti
文件 1566 2008-08-15 10:40 ChartCtrl_source\Chartti
目录 0 2008-11-04 22:35 ChartCtrl_source
............此处省略3个文件信息
评论
共有 条评论