NEWIMAGESIZE.CPP
上传用户:alisonmail
上传日期:2013-02-28
资源大小:500k
文件大小:1k
- // NewImageSize.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ImageView.h"
- #include "NewImageSize.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CNewImageSize dialog
- CNewImageSize::CNewImageSize(CWnd* pParent /*=NULL*/)
- : CDialog(CNewImageSize::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CNewImageSize)
- m_nWidth = 0;
- m_nHeight = 0;
- m_CurrentSize = _T("");
- //}}AFX_DATA_INIT
- }
- void CNewImageSize::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CNewImageSize)
- DDX_Text(pDX, IDC_EDIT1, m_nWidth);
- DDV_MinMaxInt(pDX, m_nWidth, 1, 2500);
- DDX_Text(pDX, IDC_EDIT2, m_nHeight);
- DDV_MinMaxInt(pDX, m_nHeight, 1, 2500);
- DDX_Text(pDX, IDC_CURRENTSIZE, m_CurrentSize);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CNewImageSize, CDialog)
- //{{AFX_MSG_MAP(CNewImageSize)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CNewImageSize message handlers