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

📄 advancequery.cpp

📁 在游戏设计的时候
💻 CPP
字号:
// AdvanceQuery.cpp : implementation file
//

#include "stdafx.h"
#include "PrintDB.h"
#include "AdvanceQuery.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAdvanceQuery dialog


CAdvanceQuery::CAdvanceQuery(CWnd* pParent /*=NULL*/)
	: CDialog(CAdvanceQuery::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAdvanceQuery)
	m_DateFrom = _T("");
	m_DateTo = _T("");
	//}}AFX_DATA_INIT
}


void CAdvanceQuery::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAdvanceQuery)
	DDX_Control(pDX, IDC_SECTIONTO, m_SectionTo);
	DDX_Control(pDX, IDC_SECTIONFROM, m_SectionFrom);
	DDX_Text(pDX, IDC_DATEFROM, m_DateFrom);
	DDX_Text(pDX, IDC_DATETO, m_DateTo);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAdvanceQuery, CDialog)
	//{{AFX_MSG_MAP(CAdvanceQuery)
	ON_CBN_CLOSEUP(IDC_SECTIONFROM, OnCloseupSectionfrom)
	ON_CBN_CLOSEUP(IDC_SECTIONTO, OnCloseupSectionto)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAdvanceQuery message handlers

BOOL CAdvanceQuery::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	UpdateData();

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

void CAdvanceQuery::OnCloseupSectionfrom() 
{
	// TODO: Add your control notification handler code here
	int a;
	a=m_SectionFrom.GetCurSel();
	m_SectionFrom.GetLBText(a,SecFrom);
	
}

void CAdvanceQuery::OnCloseupSectionto() 
{
	// TODO: Add your control notification handler code here
	int b;
	b=m_SectionTo.GetCurSel();
	m_SectionTo.GetLBText(b,SecTo);
}


⌨️ 快捷键说明

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