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.

118 lines
2.8 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1998 - 1999
  4. Module Name:
  5. IASStringEditorPage.h
  6. Abstract:
  7. Declaration of the CIASPgSingleAttr class.
  8. This dialog allows the user to edit an attribute value consisting
  9. of a generic string.
  10. See IASStringEditorPage.cpp for implementation.
  11. Revision History:
  12. mmaguire 06/25/98 - revised Baogang Yao's original implementation
  13. --*/
  14. //////////////////////////////////////////////////////////////////////////////
  15. #if !defined(_STRING_ATTRIBUTE_EDITOR_PAGE_H_)
  16. #define _STRING_ATTRIBUTE_EDITOR_PAGE_H_
  17. #include "iasstringattributeeditor.h"
  18. //////////////////////////////////////////////////////////////////////////////
  19. // BEGIN INCLUDES
  20. //
  21. // where we can find what this class derives from:
  22. //
  23. //
  24. // where we can find what this class has or uses:
  25. //
  26. //
  27. // END INCLUDES
  28. //////////////////////////////////////////////////////////////////////////////
  29. #if _MSC_VER >= 1000
  30. #pragma once
  31. #endif // _MSC_VER >= 1000
  32. // IASPgSing.h : header file
  33. //
  34. // Limit of the string length for each attribute
  35. #if 1
  36. #define LENGTH_LIMIT_RADIUS_ATTRIBUTE_FILTER_ID 1024
  37. #define LENGTH_LIMIT_RADIUS_ATTRIBUTE_REPLY_MESSAGE 1024
  38. #define LENGTH_LIMIT_OTHERS 253
  39. #else // to test how this works
  40. #define LENGTH_LIMIT_RADIUS_ATTRIBUTE_FILTER_ID 10
  41. #define LENGTH_LIMIT_RADIUS_ATTRIBUTE_REPLY_MESSAGE 12
  42. #define LENGTH_LIMIT_OTHERS 5
  43. #endif
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CIASPgSingleAttr dialog
  46. class CIASPgSingleAttr : public CHelpDialog
  47. {
  48. DECLARE_DYNCREATE(CIASPgSingleAttr)
  49. // Construction
  50. public:
  51. CIASPgSingleAttr();
  52. ~CIASPgSingleAttr();
  53. int m_nAttrId;
  54. ATTRIBUTESYNTAX m_AttrSyntax;
  55. EStringType m_OctetStringType; // only useful when Octet
  56. int m_nLengthLimit; // the length limit of the string attribute
  57. // Dialog Data
  58. //{{AFX_DATA(CIASPgSingleAttr)
  59. enum { IDD = IDD_IAS_SINGLE_ATTR };
  60. ::CString m_strAttrValue;
  61. ::CString m_strAttrFormat;
  62. ::CString m_strAttrName;
  63. ::CString m_strAttrType;
  64. INT m_nOctetFormatChoice;
  65. //}}AFX_DATA
  66. // Overrides
  67. // ClassWizard generate virtual function overrides
  68. //{{AFX_VIRTUAL(CIASPgSingleAttr)
  69. protected:
  70. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  71. //}}AFX_VIRTUAL
  72. // Implementation
  73. private:
  74. BOOL m_fInitializing;
  75. protected:
  76. // Generated message map functions
  77. //{{AFX_MSG(CIASPgSingleAttr)
  78. afx_msg void OnContextMenu(CWnd* pWnd, ::CPoint point);
  79. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  80. afx_msg void OnRadioString();
  81. afx_msg void OnRadioHex();
  82. virtual BOOL OnInitDialog();
  83. //}}AFX_MSG
  84. DECLARE_MESSAGE_MAP()
  85. };
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  88. #endif // _STRING_ATTRIBUTE_EDITOR_PAGE_H_