www.pudn.com > vc++ODBC+student.zip > BaDialog.h


#if !defined(AFX_BADIALOG_H__5E727E52_D464_4DD6_9DA1_CD85BF618638__INCLUDED_) 
#define AFX_BADIALOG_H__5E727E52_D464_4DD6_9DA1_CD85BF618638__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// BaDialog.h : header file 
// 
#include "DRecordset.h" 
#include "BRecordset.h" 
#include "TRecordset.h" 
#include "Addialog.h" 
#include  "DelectDialog.h" 
#include  "FinDialog.h" 
#include  "EditDialog.h" 
#include "LinkButton.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CBaDialog dialog 
 
class CBaDialog : public CDialog 
{ 
// Construction 
public: 
	CBaDialog(CWnd* pParent = NULL);   // standard constructor 
    
    void Sort(BOOL isAsc=TRUE,int secol=1); 
// Dialog Data 
	//{{AFX_DATA(CBaDialog) 
	enum { IDD = IDD_BADIALOG }; 
	CLinkButton	m_StaButton; 
	CLinkButton	m_DelButton; 
	CLinkButton	m_FindButton; 
	CLinkButton	m_EditButton; 
	CLinkButton	m_AllButton; 
	CLinkButton	m_AddButton; 
	CComboBox	m_cob; 
	CListCtrl	m_ListCtrlb; 
	CListCtrl	m_ListCtrll; 
	CListCtrl	m_ListCtrlx; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CBaDialog) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
		 
	int Show(); 
	void display(); 
	void exhibit(); 
	void Enable(BOOL p); 
	CString Select(); 
	void  Equal(); 
	void Xuan(); 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CBaDialog) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnStatr(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnAdd(); 
	afx_msg void OnDelect(); 
	afx_msg void OnFind(); 
	afx_msg void OnAll(); 
	afx_msg void OnEdit(); 
	afx_msg void OnColumnclickList3(NMHDR* pNMHDR, LRESULT* pResult); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	CDRecordset m_Set; 
	CBRecordset m_bSet; 
	CTRecordset m_tSet; 
	int m_nRecordCount; 
	int m_Timer; 
	CString m_Getstring; 
	BOOL Selec; 
    BOOL m_bIsAsc; 
	BOOL m_bS; 
    CString m_Getstring1,m_Getstring2; 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_BADIALOG_H__5E727E52_D464_4DD6_9DA1_CD85BF618638__INCLUDED_)