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.

150 lines
4.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. dlgdial.h
  7. This file contains the definition for CDlgRASDialin property page, this
  8. is the page appears on the User Object Property sheet tab "Ras Dial-in"
  9. FILE HISTORY:
  10. */
  11. #if !defined(AFX_DLGRASDIALIN_H__FFB0722F_1FFD_11D1_8531_00C04FC31FD3__INCLUDED_)
  12. #define AFX_DLGRASDIALIN_H__FFB0722F_1FFD_11D1_8531_00C04FC31FD3__INCLUDED_
  13. #include "helper.h"
  14. #include "rasdial.h"
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. // DlgRASDialin.h : header file
  19. //
  20. #include "resource.h" // definition for resource IDs
  21. // By WeiJiang 2/6/98
  22. // The merge dialog is ues to merge with IAS
  23. // this eventually will replace the orginal dialog
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CDlgRASDialinMerge dialog
  26. class CDlgRASDialinMerge : public CPropertyPage, public CRASUserMerge
  27. {
  28. DECLARE_DYNAMIC(CDlgRASDialinMerge)
  29. // Construction
  30. private:
  31. CDlgRASDialinMerge(); // standard constructor
  32. public:
  33. CDlgRASDialinMerge(RasEnvType type, LPCWSTR location, LPCWSTR userPath);
  34. virtual ~CDlgRASDialinMerge();
  35. // Dialog Data
  36. //{{AFX_DATA(CDlgRASDialinMerge)
  37. enum { IDD = IDD_RASDIALIN_MERGE };
  38. CButton m_CheckStaticIPAddress;
  39. CButton m_CheckCallerId;
  40. CButton m_CheckApplyStaticRoutes;
  41. CButton m_RadioNoCallback;
  42. CButton m_RadioSetByCaller;
  43. CButton m_RadioSecureCallbackTo;
  44. CEdit m_EditCallerId;
  45. CEdit m_EditCallback;
  46. CButton m_ButtonStaticRoutes;
  47. BOOL m_bApplyStaticRoutes;
  48. int m_nCurrentProfileIndex;
  49. int m_nCallbackPolicy;
  50. BOOL m_bCallingStationId;
  51. BOOL m_bOverride;
  52. int m_nDialinPermit;
  53. //}}AFX_DATA
  54. CWnd* m_pEditIPAddress; // Static IP Address control
  55. BOOL m_bStaticIPAddress;
  56. CString m_strCallingStationId;
  57. BOOL m_bInitFailed; // when this is true, most of the dialog functions will be called
  58. // Overrides
  59. // ClassWizard generated virtual function overrides
  60. //{{AFX_VIRTUAL(CDlgRASDialinMerge)
  61. public:
  62. virtual BOOL OnApply();
  63. virtual BOOL OnKillActive();
  64. protected:
  65. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  66. //}}AFX_VIRTUAL
  67. void SetModified( BOOL bChanged = TRUE )
  68. {
  69. m_bModified = bChanged;
  70. CPropertyPage::SetModified(bChanged);
  71. };
  72. BOOL GetModified()
  73. {
  74. return m_bModified;
  75. };
  76. // Implementation
  77. protected:
  78. // Enable the dialog items for each group
  79. void EnableStaticRoutes(BOOL bEnable = true);
  80. void EnableIPAddress(BOOL bEnable = true);
  81. void EnableCallback(BOOL bEnable = true);
  82. void EnableCallerId(BOOL bEnable = true);
  83. void EnableProfile(BOOL bEnable = true);
  84. // Enable/Disable all items on the dialog
  85. void EnableDialinSettings();
  86. // set internal variables to original state
  87. void Reset();
  88. // Generated message map functions
  89. //{{AFX_MSG(CDlgRASDialinMerge)
  90. afx_msg void OnButtonStaticRoutes();
  91. afx_msg void OnCheckApplyStaticRoutes();
  92. afx_msg void OnCheckCallerId();
  93. afx_msg void OnRadioSecureCallbackTo();
  94. afx_msg void OnRadioNoCallback();
  95. afx_msg void OnRadioSetByCaller();
  96. virtual BOOL OnInitDialog();
  97. afx_msg void OnCheckStaticIPAddress();
  98. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  99. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  100. afx_msg void OnChangeEditcallback();
  101. afx_msg void OnChangeEditcallerid();
  102. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  103. afx_msg void OnPermitAllow();
  104. afx_msg void OnPermitDeny();
  105. afx_msg void OnPermitPolicy();
  106. afx_msg void OnFieldchangedEditipaddress(NMHDR* pNMHDR, LRESULT* pResult);
  107. //}}AFX_MSG
  108. DECLARE_MESSAGE_MAP()
  109. public:
  110. //=====================================================
  111. // Overload the virtual functions defined in CRASUser
  112. // To load the RASUser object
  113. virtual HRESULT Load();
  114. protected:
  115. LPFNPSPCALLBACK m_pfnOriginalCallback;
  116. BOOL m_bModified;
  117. public:
  118. static UINT CALLBACK PropSheetPageProc( HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp );
  119. };
  120. //{{AFX_INSERT_LOCATION}}
  121. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  122. #endif // !defined(AFX_DLGRASDIALIN_H__FFB0722F_1FFD_11D1_8531_00C04FC31FD3__INCLUDED_)