showchart.cpp
来自「这是一个用遗传算法来求解目标函数优化问题的源代码」· C++ 代码 · 共 61 行
CPP
61 行
// ShowChart.cpp : 实现文件
//
#include "stdafx.h"
#include "EGA.h"
#include "ShowChart.h"
#include ".\showchart.h"
// CShowChart 对话框
IMPLEMENT_DYNAMIC(CShowChart, CDialog)
CShowChart::CShowChart(CWnd* pParent /*=NULL*/)
: CDialog(CShowChart::IDD, pParent)
{
}
CShowChart::~CShowChart()
{
}
void CShowChart::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CShowChart, CDialog)
ON_WM_PAINT()
END_MESSAGE_MAP()
// CShowChart 消息处理程序
void CShowChart::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: 在此处添加消息处理程序代码
// 不为绘图消息调用 CDialog::OnPaint()
CPen pen(PS_SOLID , 2, 0x0000ff);
dc.SelectObject(pen);
m_pFunChat->PanitFunChart(&dc);
}
BOOL CShowChart::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: 在此添加额外的初始
m_pFunChat = new CFunChart(this);
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?