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.

158 lines
4.5 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(
  34. RasEnvType type,
  35. LPCWSTR location,
  36. LPCWSTR userPath,
  37. HWND notifyObj
  38. );
  39. virtual ~CDlgRASDialinMerge();
  40. // Dialog Data
  41. //{{AFX_DATA(CDlgRASDialinMerge)
  42. enum { IDD = IDD_RASDIALIN_MERGE };
  43. PADS_ATTR_INFO m_pWritableAttrs;
  44. CButton m_CheckStaticIPAddress;
  45. CButton m_CheckCallerId;
  46. CButton m_CheckApplyStaticRoutes;
  47. CButton m_RadioNoCallback;
  48. CButton m_RadioSetByCaller;
  49. CButton m_RadioSecureCallbackTo;
  50. CEdit m_EditCallerId;
  51. CEdit m_EditCallback;
  52. CButton m_ButtonStaticRoutes;
  53. BOOL m_bApplyStaticRoutes;
  54. int m_nCurrentProfileIndex;
  55. int m_nCallbackPolicy;
  56. BOOL m_bCallingStationId;
  57. BOOL m_bOverride;
  58. int m_nDialinPermit;
  59. //}}AFX_DATA
  60. CWnd* m_pEditIPAddress; // Static IP Address control
  61. BOOL m_bStaticIPAddress;
  62. CString m_strCallingStationId;
  63. BOOL m_bInitFailed; // when this is true, most of the dialog functions will be called
  64. // Overrides
  65. // ClassWizard generated virtual function overrides
  66. //{{AFX_VIRTUAL(CDlgRASDialinMerge)
  67. public:
  68. virtual BOOL OnApply();
  69. virtual BOOL OnKillActive();
  70. protected:
  71. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  72. //}}AFX_VIRTUAL
  73. void SetModified( BOOL bChanged = TRUE )
  74. {
  75. m_bModified = bChanged;
  76. CPropertyPage::SetModified(bChanged);
  77. };
  78. BOOL GetModified()
  79. {
  80. return m_bModified;
  81. };
  82. // Implementation
  83. protected:
  84. BOOL IsPropertyWritable(const wchar_t* propName) const throw ();
  85. // Enable the dialog items for each group
  86. void EnableAccessControl(BOOL bEnable = true);
  87. void EnableStaticRoutes(BOOL bEnable = true);
  88. void EnableIPAddress(BOOL bEnable = true);
  89. void EnableCallback(BOOL bEnable = true);
  90. void EnableCallerId(BOOL bEnable = true);
  91. // Enable/Disable all items on the dialog
  92. void EnableDialinSettings();
  93. // set internal variables to original state
  94. void Reset();
  95. // Generated message map functions
  96. //{{AFX_MSG(CDlgRASDialinMerge)
  97. afx_msg void OnButtonStaticRoutes();
  98. afx_msg void OnCheckApplyStaticRoutes();
  99. afx_msg void OnCheckCallerId();
  100. afx_msg void OnRadioSecureCallbackTo();
  101. afx_msg void OnRadioNoCallback();
  102. afx_msg void OnRadioSetByCaller();
  103. virtual BOOL OnInitDialog();
  104. afx_msg void OnCheckStaticIPAddress();
  105. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  106. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  107. afx_msg void OnChangeEditcallback();
  108. afx_msg void OnChangeEditcallerid();
  109. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  110. afx_msg void OnPermitAllow();
  111. afx_msg void OnPermitDeny();
  112. afx_msg void OnPermitPolicy();
  113. afx_msg void OnFieldchangedEditipaddress(NMHDR* pNMHDR, LRESULT* pResult);
  114. //}}AFX_MSG
  115. DECLARE_MESSAGE_MAP()
  116. public:
  117. //=====================================================
  118. // Overload the virtual functions defined in CRASUser
  119. // To load the RASUser object
  120. virtual HRESULT Load();
  121. protected:
  122. LPFNPSPCALLBACK m_pfnOriginalCallback;
  123. BOOL m_bModified;
  124. public:
  125. static UINT CALLBACK PropSheetPageProc( HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp );
  126. };
  127. //{{AFX_INSERT_LOCATION}}
  128. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  129. #endif // !defined(AFX_DLGRASDIALIN_H__FFB0722F_1FFD_11D1_8531_00C04FC31FD3__INCLUDED_)