⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dlgupdate.cpp

📁 一个有关数据库方面的代码 流水帐记录、统计、查询等功
💻 CPP
字号:
// DlgUpdate.cpp : implementation file
//

#include "stdafx.h"
#include "wastebook.h"
#include "DlgUpdate.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgUpdate dialog


CDlgUpdate::CDlgUpdate(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgUpdate::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgUpdate)
	m_Num = 0;
	m_Type = _T("");
	m_Date = 0;
	m_Name = _T("");
	//}}AFX_DATA_INIT
}


void CDlgUpdate::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgUpdate)
	DDX_Control(pDX, IDC_COMBO_Type, m_ctrlType);
	DDX_Text(pDX, IDC_EDIT_Number, m_Num);
	DDX_CBString(pDX, IDC_COMBO_Type, m_Type);
	DDX_DateTimeCtrl(pDX, IDC_DATE, m_Date);
	DDX_Text(pDX, IDC_EDIT_Name, m_Name);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgUpdate, CDialog)
	//{{AFX_MSG_MAP(CDlgUpdate)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgUpdate message handlers

BOOL CDlgUpdate::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_ctrlType.ResetContent();
	if(!bAddIncome)
	{
		int l=theApp.InListType.GetCount();
		POSITION pos=theApp.InListType.GetHeadPosition();
		for(int i=0;i<l;i++)
			m_ctrlType.AddString(theApp.InListType.GetNext(pos));
	}
	else
	{
		int l=theApp.OutListType.GetCount();
		POSITION pos=theApp.OutListType.GetHeadPosition();
		for(int i=0;i<l;i++)
			m_ctrlType.AddString(theApp.OutListType.GetNext(pos));
	}

	m_ctrlType.SetWindowText(m_Type);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -