Location:
Search - DDX_Text
Search list
Description: The CXrNumericEdit class is derived from the normal CEdit class.
To use this class
Add the CXrNumericEdit source file to project.
Add standard edit control
Change CEdit class to CXrNumericEdit
public:
//Dialog Data
//{{AFX_DATA(CNumericEditDlg)
enum { IDD = IDD_NUMERICEDIT_DIALOG }
CXrNumericEdit m_ctrlPositiveValue
To get and set the value in the CXrNumericEdit control use the DDX functions.
void CNumericEditDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX)
//{{AFX_DATA_MAP(CNumericEditDlg)
DDX_Text(pDX, IDC_POSITIVE_SAMPLE, m_dbPositiveValue)
...
//}}AFX_DATA_MAP
}
Platform: |
Size: 40389 |
Author: tennis100 |
Hits:
Description: The CXrNumericEdit class is derived from the normal CEdit class.
To use this class
Add the CXrNumericEdit source file to project.
Add standard edit control
Change CEdit class to CXrNumericEdit
public:
//Dialog Data
//{{AFX_DATA(CNumericEditDlg)
enum { IDD = IDD_NUMERICEDIT_DIALOG }
CXrNumericEdit m_ctrlPositiveValue
To get and set the value in the CXrNumericEdit control use the DDX functions.
void CNumericEditDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX)
//{{AFX_DATA_MAP(CNumericEditDlg)
DDX_Text(pDX, IDC_POSITIVE_SAMPLE, m_dbPositiveValue)
...
//}}AFX_DATA_MAP
}
Platform: |
Size: 39936 |
Author: tennis100 |
Hits:
Description: 简单的VC+程序,包括学生成绩添加、查询、删除、修改-// ScoreDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Ex_ODBC.h"
#include "ScoreDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__
#endif
/////////////////////////////////////////////////////////////////////////////
// CScoreDlg dialog
CScoreDlg::CScoreDlg(CWnd* pParent /*=NULL*/)
: CDialog(CScoreDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CScoreDlg)
m_strCourseNO = _T("")
m_fScore = 0.0f
m_fCredit = 0.0f
m_strStudentNO = _T("")
//}}AFX_DATA_INIT
}
void CScoreDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX)
//{{AFX_DATA_MAP(CScoreDlg)
DDX_Text(pDX, IDC_COURSENO, m_strCourseNO)
DDV_MaxChars(pDX, m_strCourseNO, 7)
DDX_Text(pDX, IDC_SCORE, m_fScore)
DDV_MinMaxFloat(pDX, m_fScore, 0.f, 100.f)
DDX_Text(pDX, IDC_CREDIT, m_fCredit)
DDV_MinMaxFloat(pDX, m_fCredit, 1.f, 20.f)
DDX_Text(pDX, IDC_STUNO, m_strStudentNO)
DDV_MaxChars(pDX, m_strStu
Platform: |
Size: 55296 |
Author: apple |
Hits:
Description: MFC DDX_TEXT() 和 DDX_Control() 的比较-compare of MFC DDX_TEXT() and DDX_Control()
Platform: |
Size: 1024 |
Author: coolhead765 |
Hits: