query.h

来自「ADO的综合介绍和实例详解」· C头文件 代码 · 共 72 行

H
72
字号
#if !defined(AFX_QUERY_H__4E24346D_05CD_4D95_A7A2_5DF04AA1564A__INCLUDED_)
#define AFX_QUERY_H__4E24346D_05CD_4D95_A7A2_5DF04AA1564A__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CQuery dialog

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

// Dialog Data
	//{{AFX_DATA(CQuery)
	enum { IDD = IDD_QUERY };
	CButton	m_btnRun;
	CButton	m_btnOr;
	CButton	m_btnNo;
	CButton	m_btnExit;
	CButton	m_btnClear;
	CButton	m_btnAll;
	CButton	m_btnAdd;
	CListCtrl	m_ctlResult;
	CListBox	m_ctlField;
	CComboBox	m_ctlSort;
	CComboBox	m_ctlOpt;
	CComboBox	m_ctlFValue;
	CComboBox	m_ctlFName;
	CString	m_sSql;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CQuery)
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnrun();
	afx_msg void OnBtnclear();
	afx_msg void OnBtnexit();
	afx_msg void OnItemchangedListResult(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int m_iCurrentSel;
	void LoadRecordToListView(_RecordsetPtr Rsc);
	_RecordsetPtr m_pRsc;
	void LoadData(CString sTName);
};

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

#endif // !defined(AFX_QUERY_H__4E24346D_05CD_4D95_A7A2_5DF04AA1564A__INCLUDED_)

⌨️ 快捷键说明

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