cfxdynamic.cpp

来自「Delphi Component - Chart Fx」· C++ 代码 · 共 70 行

CPP
70
字号
// CfxDynamic.cpp : implementation file
//

#include "stdafx.h"
#include "cfx98.h"
#include "CfxDynamic.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCfxDynamic dialog


CCfxDynamic::CCfxDynamic(CWnd* pParent /*=NULL*/)
	: CDialog(CCfxDynamic::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCfxDynamic)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CCfxDynamic::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCfxDynamic)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCfxDynamic, CDialog)
	//{{AFX_MSG_MAP(CCfxDynamic)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCfxDynamic message handlers

BOOL CCfxDynamic::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	// ***CFX***
	// Create and Initialize Dynamic Chart !!!
	CRect rc;
	GetDlgItem(IDC_FRAME)->GetWindowRect(rc);
	ScreenToClient(rc);

	// Create Control Window

	// Notice that the license string needs to be supplied so that the program can run in other computers.
	// Your license string is printed in your license card.
	// The use of the license string is restricted to end-user applications. Please read your license agreement carefully.
	m_ChartFX.CreateControl(__uuidof(ChartFX), NULL, WS_VISIBLE, rc, this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

	// Attach to Chart pointer
	m_pChartFX = m_ChartFX.GetControlUnknown();
	// ***CFX***

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?