ellipse (mfc, SizeDialog.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
// SizeDialiog.cpp : implementation file
//
#include "stdafx.h"
#include "WinLab(01).h"
#include "SizeDialiog.h"
#include "afxdialogex.h"
// SizeDialiog dialog
IMPLEMENT_DYNAMIC(SizeDialiog, CDialog)
SizeDialiog::SizeDialiog(CWnd* pParent /*=NULL*/)
: CDialog(SizeDialiog::IDD, pParent), width(0), height(0)
{
}
SizeDialiog::~SizeDialiog()
{
}
void SizeDialiog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT1, width);
DDX_Text(pDX, IDC_EDIT2, height);
}
BEGIN_MESSAGE_MAP(SizeDialiog, CDialog)
END_MESSAGE_MAP()
// SizeDialiog message handlers