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.

85 lines
2.1 KiB

  1. //+---------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993 - 1997.
  5. //
  6. // File: locppg.h
  7. //
  8. // Contents: Defines the classes CDefaultProtocols
  9. //
  10. // Classes:
  11. //
  12. // Methods:
  13. //
  14. // History: 02-Jul-97 ronans Created.
  15. //
  16. //----------------------------------------------------------------------
  17. #ifndef __DEFPROT_H__
  18. #define __DEFPROT_H__
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDefaultProtocols property page
  21. class CDefaultProtocols : public CPropertyPage
  22. {
  23. DECLARE_DYNCREATE(CDefaultProtocols)
  24. // Construction
  25. public:
  26. BOOL m_bChanged;
  27. void RefreshProtocolList();
  28. void UpdateSelection();
  29. CDefaultProtocols();
  30. ~CDefaultProtocols();
  31. // Dialog Data
  32. //{{AFX_DATA(CDefaultProtocols)
  33. enum { IDD = IDD_PPGDEFPROT };
  34. CButton m_btnProperties;
  35. CButton m_btnRemove;
  36. CButton m_btnMoveUp;
  37. CButton m_btnMoveDown;
  38. CButton m_btnAdd;
  39. CListCtrl m_lstProtocols;
  40. //}}AFX_DATA
  41. // Overrides
  42. // ClassWizard generate virtual function overrides
  43. //{{AFX_VIRTUAL(CDefaultProtocols)
  44. public:
  45. virtual BOOL OnKillActive();
  46. virtual BOOL OnSetActive();
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. CImageList m_imgNetwork; // image list for use in protocols
  53. int m_nDefaultProtocolsIndex;
  54. CObArray m_arrProtocols;
  55. int m_nSelected;
  56. // Generated message map functions
  57. //{{AFX_MSG(CDefaultProtocols)
  58. virtual BOOL OnInitDialog();
  59. afx_msg void OnAddProtocol();
  60. afx_msg void OnMoveProtocolDown();
  61. afx_msg void OnMoveProtocolUp();
  62. afx_msg void OnRemoveProtocol();
  63. afx_msg void OnKillFocus(CWnd* pNewWnd);
  64. afx_msg void OnSetFocus(CWnd* pOldWnd);
  65. afx_msg void OnSelectProtocol(NMHDR* pNMHDR, LRESULT* pResult);
  66. afx_msg void OnProperties();
  67. afx_msg void OnPropertiesClick(NMHDR* pNMHDR, LRESULT* pResult);
  68. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. };
  72. #endif