filterdlg.h

来自「管理项目进度工具的原代码」· C头文件 代码 · 共 74 行

H
74
字号
#if !defined(AFX_FILTERDLG_H__9BFA276C_9BD6_4B23_A714_BB9D059CC2EB__INCLUDED_)
#define AFX_FILTERDLG_H__9BFA276C_9BD6_4B23_A714_BB9D059CC2EB__INCLUDED_

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

#include "filteredtodoctrl.h"
#include "tdlprioritycombobox.h"
#include "tdlriskcombobox.h"

#include "..\shared\tabbedcombobox.h"
#include "..\shared\dialoghelper.h"
#include "..\shared\encheckcombobox.h"

#include <afxtempl.h>

/////////////////////////////////////////////////////////////////////////////
// CFilterDlg dialog

class CFilterDlg : public CDialog, public CDialogHelper
{
// Construction
public:
	CFilterDlg(DWORD dwFlags = FB_MULTISELALLOCTO | FB_MULTISELCAT, CWnd* pParent = NULL);   // standard constructor

	int DoModal(const CFilteredToDoCtrl& tdc, 
				const CDWordArray& aPriorityColors);
	void GetFilter(FTDCFILTER& filter);

protected:
// Dialog Data
	//{{AFX_DATA(CFilterDlg)
	enum { IDD = IDD_FILTER_DIALOG };
	//}}AFX_DATA
	CEnCheckComboBox	m_cbCategoryFilter;
	CEnCheckComboBox	m_cbStatusFilter;
	CEnCheckComboBox	m_cbAllocToFilter;
	CEnCheckComboBox m_cbAllocByFilter;
	CTabbedComboBox	m_cbTaskFilter;
	CTDLPriorityComboBox	m_cbPriorityFilter;
	CTDLRiskComboBox	m_cbRiskFilter;
	FTDCFILTER m_filter;
	CStringArray m_aAllocTo;
	CStringArray m_aAllocBy;
	CStringArray m_aCategory;
	CStringArray m_aStatus;
	CDWordArray m_aPriorityColors;

// 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)
	virtual BOOL OnInitDialog();
	afx_msg void OnClearfilter();
	//}}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__9BFA276C_9BD6_4B23_A714_BB9D059CC2EB__INCLUDED_)

⌨️ 快捷键说明

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