📄 cfxdynamic.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -