Other.cpp
资源名称:txpj.rar [点击查看]
上传用户:pureled
上传日期:2013-05-27
资源大小:1078k
文件大小:1k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- // Other.cpp : implementation file
- //
- #include "stdafx.h"
- #include "图像拼接技术.h"
- #include "Other.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // Other dialog
- Other::Other(CWnd* pParent /*=NULL*/)
- : CDialog(Other::IDD, pParent)
- {
- //{{AFX_DATA_INIT(Other)
- m_x=0;
- m_y=0;
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void Other::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(Other)
- DDX_Text(pDX, IDC_EDIT3, m_x);
- DDX_Text(pDX, IDC_EDIT4, m_y);
- DDV_MinMaxInt(pDX, m_y, 0, 4000);
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(Other, CDialog)
- //{{AFX_MSG_MAP(Other)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // Other message handlers
- BOOL Other::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: Add extra initialization here
- m_x=400;
- m_y=0;
- UpdateData(FALSE);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void Other::OnOK()
- {
- // TODO: Add extra validation here
- UpdateData(TRUE);
- CDialog::OnOK();
- }