📄 filterdlg.h
字号:
#if !defined(AFX_FILTERDLG_H__3B5D28D3_19A7_11D3_B414_7E1159000000__INCLUDED_)
#define AFX_FILTERDLG_H__3B5D28D3_19A7_11D3_B414_7E1159000000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FilterDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CFilterDlg dialog
class CDataBaseSet;
class CFilterDlg : public CDialog
{
// Construction
public:
CFilterDlg(CDataBaseSet* pSet,CWnd* pParent = NULL);
CDataBaseSet* m_pSet;
CString m_strFilter; //存储过滤条件
private:
CListBox *plist1,*plist2;
CComboBox *pcom1,*pcom2;
protected:
CString m_strAnd[14]; //存储.AND.过滤条件子式
CString m_strOr[6]; //存储.OR.过滤条件子式
short m_NumbAnd,m_NumbOr;
short m_NumbOperator;
short m_NumbField;
char *m_strOperator[10];
short m_OperatorLong[10];
CODBCFieldInfo pFieldInfo[200];
int BreakOrStr(CString m_str);
int BreakAndStr(CString m_str);
BOOL MakeOrStr(CString& m_str);
BOOL MakeAndStr(CString& m_str);
BOOL MakeStr();
// Dialog Data
//{{AFX_DATA(CFilterDlg)
enum { IDD = IDD_FILTER };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFilterDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CFilterDlg)
afx_msg void OnAndAdd();
afx_msg void OnSelchangeList1();
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeList2();
afx_msg void OnOrAdd();
afx_msg void OnAndDelete();
afx_msg void OnOrDelete();
afx_msg void OnOrModify();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnSelchangeCombo1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FILTERDLG_H__3B5D28D3_19A7_11D3_B414_7E1159000000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -