-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathAdvancedSet.h
33 lines (30 loc) · 1.1 KB
/
AdvancedSet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "afxwin.h"
#include "MyBitamp.h"
//高级设置类-是一个对话框,开发者可以打开这个对话框设置一些内部参数
class AdvancedSet : public CDialog
{
public:
AdvancedSet(CWnd* pParent = NULL); //构造函数
enum { IDD = IDD_AdvancedSet };
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg int check_redo(int check,int redo); //检查参数还是撤销
afx_msg void OnHelpAbs(); //对偏向性系数的说明
afx_msg BOOL OnEraseBkgnd(CDC* pDC); //改变窗口背景图片
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);//对静态文本区域重绘,达到透明效果
DECLARE_MESSAGE_MAP()
public:
CMyBitmap bg2; //创建画刷变量
int waitTime; //等待时间
double permitError; //允许误差
int EvoCol; //演化模板列数
double absolut; //偏向系数
static const int ratio_num = 7;//当前使用的特征个数
double ratio[ratio_num];//各特征所占比例系数
afx_msg void OnEnChangeRatio();
double balance_ratio;
afx_msg void OnBnClickedhelpbalance();
};