资源简介
不同赌本,抛硬币输赢概率
代码片段和文件信息
///////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2012 Advanced Software Engineering Limited
//
// You may use and modify the code in this file in your application provided the code and
// its modifications are used only in conjunction with ChartDirector. Usage of this software
// is subjected to the terms and condition of the ChartDirector license.
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
// CChartViewer Implementation
//
// The CChartViewer is a subclass of CStatic for displaying chart images. It extends CStatic
// to support to support image maps clickable hot spots with tool tips zooming and scrolling
// support and image update rate control.
//
// To use CChartViewer create the layout template using the Resource Editor with CStatic
// (Picture) controls configured to display bitmaps. Remember to check the “Notify“ check
// box for the control. Create member variables for them using the ClassWizard as usual.
// Then edit the header file to include “ChartViewer.h“ and change CStatic to CChartViewer.
///////////////////////////////////////////////////////////////////////////////////////////////////
#include “stdafx.h“
#include “ChartViewer.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
/////////////////////////////////////////////////////////////////////////////
// CChartViewer
//
// Build in mouse cursors for zooming and scrolling support
//
static HCURSOR getZoomInCursor();
static HCURSOR getZoomOutCursor();
static HCURSOR getNoZoomCursor();
static HCURSOR getNoMove2DCursor();
static HCURSOR getNoMoveHorizCursor();
static HCURSOR getNoMoveVertCursor();
//
// Constants used in m_delayChartUpdate
//
enum { NO_DELAY NEED_DELAY NEED_UPDATE };
enum { UPDATE_VIEW_PORT_TIMER = 1 DELAYED_MOUSE_MOVE_TIMER = 2 };
//
// Constructor
//
CChartViewer::CChartViewer()
{
// current chart and hot spot tester
m_currentChart = 0;
m_hotSpotTester = 0;
// create the tool tip control
m_ToolTip.Create(this);
m_ToolTip.Activate(TRUE);
m_ToolTip.Modifystyle(0 TTS_NOPREFIX);
m_toolTipHasAttached = false;
// initialize chart configuration
m_selectBoxLineColor = RGB(0 0 0);
m_selectBoxLineWidth = 2;
m_mouseUsage = Chart::MouseUsageDefault;
m_zoomDirection = Chart::DirectionHorizontal;
m_zoomInRatio = 2;
m_zoomOutRatio = 0.5;
m_scrollDirection = Chart::DirectionHorizontal;
m_minDragAmount = 5;
m_updateInterval = 20;
// current state of the mouse
m_isOnPlotArea = false;
m_isPlotAreaMouseDown = false;
m_isDragScrolling = false;
m_currentHotSpot = -1;
m_isClickable = false;
m_isMouseTracking = false;
m_isInMouseMove = false;
// chart update rate support
m_needUpdateChart = false;
m_needUpdateImageMap = false;
m_holdTim
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2461696 2012-10-25 06:53 risk\chartdir51.dll
文件 2461696 2012-10-25 06:53 risk\code\bin\debug\chartdir51.dll
文件 1212764 2016-05-01 17:42 risk\code\bin\debug\helloworld.ilk
文件 35978 2012-05-12 02:12 risk\code\helloworld\ChartViewer.cpp
文件 11310 2012-05-09 16:13 risk\code\helloworld\ChartViewer.h
文件 8008 2016-05-01 17:42 risk\code\helloworld\Debug\BuildLog.htm
文件 36780 2016-05-01 12:52 risk\code\helloworld\helloworld.aps
文件 1393 2012-05-09 15:33 risk\code\helloworld\helloworld.cpp
文件 528 2012-05-09 15:23 risk\code\helloworld\helloworld.h
文件 14584832 2016-05-01 17:44 risk\code\helloworld\helloworld.ncb
文件 4478 2016-05-01 12:52 risk\code\helloworld\helloworld.rc
文件 884 2016-05-01 17:43 risk\code\helloworld\helloworld.sln
..A..H. 10240 2016-05-01 17:44 risk\code\helloworld\helloworld.suo
文件 8931 2016-05-01 13:30 risk\code\helloworld\helloworld.vcproj
文件 1433 2016-05-01 17:44 risk\code\helloworld\helloworld.vcproj.2013-20150605DY.Administrator.user
文件 5233 2016-05-01 17:42 risk\code\helloworld\helloworldDlg.cpp
文件 727 2016-05-01 12:20 risk\code\helloworld\helloworldDlg.h
文件 6438 2016-05-01 13:30 risk\code\helloworld\Release\BuildLog.htm
文件 93569 2016-05-01 13:08 risk\code\helloworld\Release\ChartViewer.obj
文件 145 2016-05-01 13:30 risk\code\helloworld\Release\helloworld.exe.intermediate.manifest
文件 20665 2016-05-01 13:08 risk\code\helloworld\Release\helloworld.obj
文件 14286848 2016-05-01 13:08 risk\code\helloworld\Release\helloworld.pch
文件 15476 2016-05-01 13:08 risk\code\helloworld\Release\helloworld.res
文件 90067 2016-05-01 13:08 risk\code\helloworld\Release\helloworldDlg.obj
文件 65 2016-05-01 13:30 risk\code\helloworld\Release\mt.dep
文件 7715 2016-05-01 13:08 risk\code\helloworld\Release\statistics.obj
文件 40052 2016-05-01 13:08 risk\code\helloworld\Release\StdAfx.obj
文件 412672 2016-05-01 13:08 risk\code\helloworld\Release\vc80.idb
文件 1078 2006-06-28 20:34 risk\code\helloworld\res\helloworld.ico
文件 402 2006-06-28 20:34 risk\code\helloworld\res\helloworld.rc2
............此处省略25个文件信息
相关资源
- Risk Assessment in Geotechnical Engineering -
- The Linux Programming Interface 原版pdf by K
- Asterisk权威指南中文
- Asterisk AMI接口 在线手册
- Risk Management and Financial Institutions 4ed
- Risk Solver Platform 11.5 试用版
- Theory of Financial Risk - From Statistical Ph
- asterisk for windows
- The Cyber Risk Handbook
- Risk Simulator
- The Barra China Equity Model (CNE5) - Empi
- 《Linux-UNIX系统编程手册 上 下册 合》
- 《Linux-UNIX系统编程手册 上、下册 全
- risksim和treeplan.rar
- Risk-Neutral Valuation-Pricing and Hedging of
- Asterisk权威指南(第3版)中文
- Exponential and non-exponential upper bounds f
- Factors Influencing the Association between CY
- Asterisk权威指南(第3版)中文 目前最
- asterisk freepbx 安装脚本
- 自写的完整SIP协议栈c源码,编译后即
评论
共有 条评论