// pageset.cpp : implementation file // // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1995 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #include "stdafx.h" #include "wordpad.h" #include "resource.h" #include "pageset.h" #include "ruler.h" #include "ddxm.h" #include "helpids.h" #ifdef _DEBUG #undef THIS_FILE static char BASED_CODE THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CPageSetupDlg dialog const DWORD CPageSetupDlg::m_nHelpIDs[] = { IDC_EDIT_TM, IDH_WORDPAD_TOPMARGIN, IDC_EDIT_BM, IDH_WORDPAD_BOTTOMMARGIN, IDC_EDIT_LM, IDH_WORDPAD_LEFTMARGIN, IDC_EDIT_RM, IDH_WORDPAD_RIGHTMARGIN, IDC_BOX, IDH_COMM_GROUPBOX, 0, 0 }; CPageSetupDlg::CPageSetupDlg(CWnd* pParent /*=NULL*/) : CCSDialog(CPageSetupDlg::IDD, pParent) { //{{AFX_DATA_INIT(CPageSetupDlg) m_nTopMargin = 0; m_nRightMargin = 0; m_nLeftMargin = 0; m_nBottomMargin = 0; //}}AFX_DATA_INIT } void CPageSetupDlg::DoDataExchange(CDataExchange* pDX) { CCSDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CPageSetupDlg) DDX_Twips(pDX, IDC_EDIT_TM, m_nTopMargin); DDV_MinMaxTwips(pDX, m_nTopMargin, -31680, 31680); DDX_Twips(pDX, IDC_EDIT_RM, m_nRightMargin); DDV_MinMaxTwips(pDX, m_nRightMargin, -31680, 31680); DDX_Twips(pDX, IDC_EDIT_LM, m_nLeftMargin); DDV_MinMaxTwips(pDX, m_nLeftMargin, -31680, 31680); DDX_Twips(pDX, IDC_EDIT_BM, m_nBottomMargin); DDV_MinMaxTwips(pDX, m_nBottomMargin, -31680, 31680); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CPageSetupDlg, CCSDialog) //{{AFX_MSG_MAP(CPageSetupDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CPageSetupDlg message handlers