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.

120 lines
3.4 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. dlgroute.h
  7. definition of CDlgStaticRoutes, dialog to show the current static
  8. routes applied to this dialin client
  9. definition of CDlgAddRoute, add a new route to the route list
  10. FILE HISTORY:
  11. */
  12. #if !defined(AFX_DLGSTATICROUTES_H__FFB07230_1FFD_11D1_8531_00C04FC31FD3__INCLUDED_)
  13. #define AFX_DLGSTATICROUTES_H__FFB07230_1FFD_11D1_8531_00C04FC31FD3__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // DlgStaticRoutes.h : header file
  18. //
  19. #include "stdafx.h"
  20. #include "resource.h"
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CDlgStaticRoutes dialog
  23. class CDlgStaticRoutes : public CDialog
  24. {
  25. // Construction
  26. public:
  27. CDlgStaticRoutes(CStrArray& Routes, CWnd* pParent = NULL); // standard constructor
  28. virtual ~CDlgStaticRoutes();
  29. // Dialog Data
  30. //{{AFX_DATA(CDlgStaticRoutes)
  31. enum { IDD = IDD_STATICROUTES };
  32. CListCtrl m_ListRoutes;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CDlgStaticRoutes)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CDlgStaticRoutes)
  45. virtual BOOL OnInitDialog();
  46. afx_msg void OnButtonDeleteRoute();
  47. afx_msg void OnButtonAddRoute();
  48. virtual void OnOK();
  49. afx_msg void OnItemchangedListroutes(NMHDR* pNMHDR, LRESULT* pResult);
  50. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  51. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. CStrArray& m_strArrayRoute;
  55. CStrArray* m_pNewRoute;
  56. CArray<DWORD, DWORD> m_RouteIDs;
  57. DWORD m_dwNextRouteID;
  58. void AddRouteEntry(int i, CString& string, DWORD routeID);
  59. int AllRouteEntry();
  60. };
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CDlgAddRoute dialog
  63. class CDlgAddRoute : public CDialog
  64. {
  65. // Construction
  66. public:
  67. CDlgAddRoute(CString* pStr, CWnd* pParent = NULL); // standard constructor
  68. // Dialog Data
  69. //{{AFX_DATA(CDlgAddRoute)
  70. enum { IDD = IDD_ADDROUTE };
  71. CSpinButtonCtrl m_SpinMetric;
  72. UINT m_nMetric;
  73. //}}AFX_DATA
  74. // Overrides
  75. // ClassWizard generated virtual function overrides
  76. //{{AFX_VIRTUAL(CDlgAddRoute)
  77. protected:
  78. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  79. //}}AFX_VIRTUAL
  80. // Implementation
  81. protected:
  82. // Generated message map functions
  83. //{{AFX_MSG(CDlgAddRoute)
  84. virtual void OnOK();
  85. virtual BOOL OnInitDialog();
  86. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  87. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  88. afx_msg void OnFieldchangedEditmask(NMHDR* pNMHDR, LRESULT* pResult);
  89. //}}AFX_MSG
  90. DECLARE_MESSAGE_MAP()
  91. DWORD m_dwDest;
  92. DWORD m_dwMask;
  93. CString* m_pStr;
  94. bool m_bInited;
  95. };
  96. //{{AFX_INSERT_LOCATION}}
  97. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  98. #endif // !defined(AFX_DLGSTATICROUTES_H__FFB07230_1FFD_11D1_8531_00C04FC31FD3__INCLUDED_)