Source code of Windows XP (NT5)
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.

88 lines
2.4 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  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 OnSelEndOkCbprotocoltype();
  47. afx_msg void OnEnChangeProtocolID();
  48. virtual void OnOK();
  49. virtual void OnCancel();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. CListCtrl m_listResult;
  53. CComboBox m_cmbProtocol;
  54. CEdit m_editProtID;
  55. CSpinButtonCtrl m_spinProtID;
  56. IPControl m_ipSrc;
  57. IPControl m_ipDest;
  58. private:
  59. HWND CreateIPControl(UINT uID, UINT uIDIpCtl);
  60. BOOL LoadConditionInfoFromControls(CFilterInfo * pFltr);
  61. void EnableControls();
  62. void PopulateFilterListToControl(CFilterInfoArray * parrFltrs);
  63. void SafeEnableWindow(int nId, BOOL fEnable);
  64. public:
  65. SPISpdInfo m_spSpdInfo;
  66. };
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  69. #endif // !defined(AFX_SRCHFLTR_H__77C7FD5C_6CE5_11D1_93B6_00C04FC3357A__INCLUDED_)