Skip to content

Commit

Permalink
InputDialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlitong committed Aug 19, 2017
1 parent 97819a7 commit 1cd55b4
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
43 changes: 43 additions & 0 deletions twaintest_src/InputDlg.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// InputDlg.cpp : implementation file
//

#include "stdafx.h"
#include "twaintest.h"
#include "InputDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CInputDlg dialog


CInputDlg::CInputDlg(CWnd* pParent /*=NULL*/)
: CDialog(CInputDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CInputDlg)
m_EditStr = _T("");
//}}AFX_DATA_INIT
}


void CInputDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInputDlg)
DDX_Text(pDX, IDC_EDIT1, m_EditStr);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CInputDlg, CDialog)
//{{AFX_MSG_MAP(CInputDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CInputDlg message handlers
46 changes: 46 additions & 0 deletions twaintest_src/InputDlg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#if !defined(AFX_INPUTDLG_H__04EC5F80_7364_11D3_9160_A234B585301E__INCLUDED_)
#define AFX_INPUTDLG_H__04EC5F80_7364_11D3_9160_A234B585301E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// InputDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CInputDlg dialog

class CInputDlg : public CDialog
{
// Construction
public:
CInputDlg(CWnd* pParent = NULL); // standard constructor

// Dialog Data
//{{AFX_DATA(CInputDlg)
enum { IDD = IDD_DIALOG_INPUT };
CString m_EditStr;
//}}AFX_DATA


// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CInputDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:

// Generated message map functions
//{{AFX_MSG(CInputDlg)
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_INPUTDLG_H__04EC5F80_7364_11D3_9160_A234B585301E__INCLUDED_)

0 comments on commit 1cd55b4

Please sign in to comment.