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

📄 databasedlg.cpp

📁 短信防伪系统客户端
💻 CPP
字号:
// DataBaseDlg.cpp : implementation file
//

#include "stdafx.h"
#include "easytrade.h"
#include "DataBaseDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDataBaseDlg dialog


CDataBaseDlg::CDataBaseDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CDataBaseDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDataBaseDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDataBaseDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDataBaseDlg)
	DDX_Control(pDX, IDC_BASEQUERY_GRID, m_Grid);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDataBaseDlg, CDialog)
	//{{AFX_MSG_MAP(CDataBaseDlg)
	ON_BN_CLICKED(IDC_ADD_DATA, OnAddData)
	ON_BN_CLICKED(IDC_FIND_DATA, OnFindData)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDataBaseDlg message handlers

BOOL CDataBaseDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	this->SetWindowText(m_Caption);
	m_DateBaseName="客户";
	rst.Open(m_DateBaseName);
//	this->m_ComField.SetRecordset(rst);
	m_Grid.ReadOnly(true);
//	this->m_ComEmblem.SetCurSel(0);
//	this->m_ComField.SetCurSel(0);
//	m_DateBaseName="商品信息查询";
	m_Grid.SetDataBase(m_DateBaseName,adCmdTable);


	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CDataBaseDlg::OnAddData() 
{
	// TODO: Add your control notification handler code here
	
}

void CDataBaseDlg::OnFindData() 
{
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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