Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 2002 **/
  4. /**********************************************************************/
  5. /*
  6. SrchFltr.h
  7. Search Filter dialog header file
  8. FILE HISTORY:
  9. */
  10. #if !defined(AFX_SRCHFLTR_H__77C7FD5C_6CE5_11D1_93B6_00C04FC3357A__INCLUDED_)
  11. #define AFX_SRCHFLTR_H__77C7FD5C_6CE5_11D1_93B6_00C04FC3357A__INCLUDED_
  12. #include "mdlsdlg.h"
  13. #include "spddb.h"
  14. #include "ipctrl.h"
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CSearchFilters dialog
  20. class CSearchFilters : public CModelessDlg
  21. {
  22. // Construction
  23. public:
  24. CSearchFilters(ISpdInfo * pSpdInfo); // standard constructor
  25. // Dialog Data
  26. //{{AFX_DATA(CSearchFilters)
  27. enum { IDD = IDD_SRCH_FLTRS };
  28. //}}AFX_DATA
  29. virtual DWORD * GetHelpMap() { return (DWORD *) &g_aHelpIDs_IDD_SRCH_FLTRS[0]; }
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CSearchFilters)
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. // Generated message map functions
  39. //{{AFX_MSG(CSearchFilters)
  40. virtual BOOL OnInitDialog();
  41. afx_msg void OnButtonSearch();
  42. afx_msg void OnSrcOptionClicked();
  43. afx_msg void OnDestOptionClicked();
  44. afx_msg void OnSrcPortClicked();
  45. afx_msg void OnDestPortClicked();
  46. afx_msg void OnSrcMeOptionClicked();
  47. afx_msg void OnDstMeOptionClicked();
  48. afx_msg void OnSelEndOkCbprotocoltype();
  49. afx_msg void OnEnChangeProtocolID();
  50. virtual void OnOK();
  51. virtual void OnCancel();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. CListCtrl m_listResult;
  55. CComboBox m_cmbProtocol;
  56. CEdit m_editProtID;
  57. CSpinButtonCtrl m_spinProtID;
  58. IPControl m_ipSrc;
  59. IPControl m_ipDest;
  60. private:
  61. HWND CreateIPControl(UINT uID, UINT uIDIpCtl);
  62. BOOL LoadConditionInfoFromControls(CFilterInfo * pFltr);
  63. void EnableControls();
  64. void PopulateFilterListToControl(CFilterInfoArray * parrFltrs);
  65. void SafeEnableWindow(int nId, BOOL fEnable);
  66. void AddIpAddrsToCombo();
  67. public:
  68. SPISpdInfo m_spSpdInfo;
  69. };
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_SRCHFLTR_H__77C7FD5C_6CE5_11D1_93B6_00C04FC3357A__INCLUDED_)