forked from nkhorman/archive-freepcb-atlassian
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDlgPrint.cpp
47 lines (34 loc) · 915 Bytes
/
DlgPrint.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
// DlgPrint.cpp : implementation file
//
#include "stdafx.h"
#include "FreePcb.h"
#include "DlgPrint.h"
#include "afxdialogex.h"
// CDlgPrint dialog
IMPLEMENT_DYNAMIC(CDlgPrint, CDialog)
CDlgPrint::CDlgPrint(CWnd* pParent /*=NULL*/)
: CPrintDialog(FALSE)
, m_Denominator(1)
, m_Numerator(1)
{
//m_pd.Flags |= PD_ENABLEPRINTTEMPLATE;
//m_pd.lpSetupTemplateName = MAKEINTRESOURCE(IDD_PRINT);
//m_pd.hInstance = AfxGetInstanceHandle();
}
CDlgPrint::~CDlgPrint()
{
}
void CDlgPrint::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_PRINT_SCALE_DENOMINATOR, m_Denominator);
DDX_Text(pDX, IDC_PRINT_SCALE_NUMERATOR, m_Numerator);
DDV_MinMaxUInt(pDX, m_Numerator, 1, 999);
DDV_MinMaxUInt(pDX, m_Denominator, 1, 999);
}
BEGIN_MESSAGE_MAP(CDlgPrint, CDialog)
END_MESSAGE_MAP()
// CDlgPrint message handlers
void CDlgPrint::Initialize()
{
}