-
Notifications
You must be signed in to change notification settings - Fork 1
/
CPUFeaturesDlg.cpp
82 lines (54 loc) · 1.58 KB
/
CPUFeaturesDlg.cpp
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// CPUFeaturesDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CPUBench2004.h"
#include "CPUFeaturesDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCPUFeaturesDlg dialog
CCPUFeaturesDlg::CCPUFeaturesDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCPUFeaturesDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CCPUFeaturesDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CCPUFeaturesDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCPUFeaturesDlg)
DDX_Control(pDX, IDOK, m_ok);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCPUFeaturesDlg, CDialog)
//{{AFX_MSG_MAP(CCPUFeaturesDlg)
ON_WM_PAINT()
ON_WM_ERASEBKGND()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCPUFeaturesDlg message handlers
BOOL CCPUFeaturesDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CRect r;
GetClientRect(&r);
w.SetCtrlRect(&r);
w.BuildInterface();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CCPUFeaturesDlg::OnPaint()
{
CPaintDC dc(this); // device context for painting
w.Draw(&dc);
// Do not call CDialog::OnPaint() for painting messages
}
BOOL CCPUFeaturesDlg::OnEraseBkgnd(CDC* pDC)
{
return TRUE;//CDialog::OnEraseBkgnd(pDC);
}