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.

87 lines
2.3 KiB

  1. //============================================================================
  2. // Copyright(c) 1996, Microsoft Corporation
  3. //
  4. // File: ipxadd.h
  5. //
  6. // History:
  7. // 08/30/96 Ram Cherala Created
  8. //
  9. // Class declarations for IPX filter Add/Edit routines
  10. //============================================================================
  11. #ifndef _DIALOG_H_
  12. #include "dialog.h"
  13. #endif
  14. #define WM_EDITLOSTFOCUS (WM_USER + 101)
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CIpxAddEdit dialog
  17. class CIpxAddEdit : public CBaseDialog
  18. {
  19. // Construction
  20. public:
  21. CIpxAddEdit(CWnd* pParent,
  22. FilterListEntry ** ppFilterEntry); // standard constructor
  23. // Dialog Data
  24. //{{AFX_DATA(CIpxAddEdit)
  25. enum { IDD = IDD_IPXFILTER_ADDEDIT };
  26. CEdit m_ebSrcSocket;
  27. CEdit m_ebSrcNode;
  28. CEdit m_ebSrcNet;
  29. CEdit m_ebSrcMask;
  30. CEdit m_ebPacketType;
  31. CEdit m_ebDstSocket;
  32. CEdit m_ebDstNode;
  33. CEdit m_ebDstNet;
  34. CEdit m_ebDstMask;
  35. //}}AFX_DATA
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CIpxAddEdit)
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. static DWORD m_dwHelpMap[];
  45. FilterListEntry** m_ppFilterEntry;
  46. BOOL m_bEdit;
  47. BOOL m_bValidate;
  48. BOOL VerifyEntry(
  49. UINT uId,
  50. const CString& cStr,
  51. const CString& cNet );
  52. // call VerifyEntry inside
  53. BOOL ValidateAnEntry( UINT uId);
  54. // Generated message map functions
  55. //{{AFX_MSG(CIpxAddEdit)
  56. virtual void OnOK();
  57. virtual void OnCancel();
  58. afx_msg LONG OnEditLostFocus(UINT, LONG);
  59. afx_msg void OnKillFocusSrcNet();
  60. afx_msg void OnKillFocusSrcNetMask();
  61. afx_msg void OnKillFocusSrcNode();
  62. afx_msg void OnKillFocusSrcSocket();
  63. afx_msg void OnKillFocusDstNet();
  64. afx_msg void OnKillFocusDstNetMask();
  65. afx_msg void OnKillFocusDstNode();
  66. afx_msg void OnKillFocusDstSocket();
  67. afx_msg void OnKillFocusPacketType();
  68. afx_msg void OnParentNotify(UINT message, LPARAM lParam);
  69. afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
  70. afx_msg BOOL OnQueryEndSession();
  71. virtual BOOL OnInitDialog();
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. };