-
Notifications
You must be signed in to change notification settings - Fork 0
/
FontGroup.h
41 lines (31 loc) · 1.02 KB
/
FontGroup.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
33
34
35
36
37
38
39
40
41
// FontGroup.h: interface for the CFontGroup class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FONTGROUP_H__199DF6E4_FA65_11D3_AEF5_00C04FCCB957__INCLUDED_)
#define AFX_FONTGROUP_H__199DF6E4_FA65_11D3_AEF5_00C04FCCB957__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CFontGroup
{
public:
void SetValueRange(double dMinValue,double dMaxValue);
CFontGroup();
virtual ~CFontGroup();
void SetWindowHeight(int nWindowHeight);
void SetFontHeight(int nFontHeight);
void Set(double dMinValue, double dMaxValue,int nWindowHeight,int nFontHeight);
double * CalcFontGroup(int &nValueNumber);
protected:
void Reset();
double m_dMinValue;
double m_dMaxValue;
int m_nWindowHeight;
int m_nFontHeight;
int m_nValue;
int m_nValueStepNumber; // 15
double m_dMinusValueStep[30];
double m_dPlusValueStep[30];
double *m_pValueGroup;
};
#endif // !defined(AFX_FONTGROUP_H__199DF6E4_FA65_11D3_AEF5_00C04FCCB957__INCLUDED_)