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.

171 lines
2.0 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. UIOPTIONS.INL
  5. History:
  6. --*/
  7. inline
  8. CLocUIOption::CLocUIOption()
  9. {
  10. m_hDescDll = NULL;
  11. m_hHelpDll = NULL;
  12. m_idsDesc = 0;
  13. m_idsHelp = 0;
  14. m_etEditor = etNone;
  15. m_wStorageTypes = 0;
  16. m_uiDisplayOrder = 0;
  17. m_pParent = NULL;
  18. }
  19. inline
  20. void
  21. CLocUIOption::SetDescription(
  22. const HINSTANCE hDll,
  23. UINT nDescriptionID)
  24. {
  25. m_hDescDll = hDll;
  26. m_idsDesc = nDescriptionID;
  27. }
  28. inline
  29. void
  30. CLocUIOption::SetHelpText(
  31. const HINSTANCE hDll,
  32. UINT nHelpTextId)
  33. {
  34. m_hHelpDll = hDll;
  35. m_idsHelp = nHelpTextId;
  36. }
  37. inline
  38. void
  39. CLocUIOption::SetEditor(
  40. EditorType et)
  41. {
  42. m_etEditor = et;
  43. }
  44. inline
  45. void
  46. CLocUIOption::SetStorageTypes(
  47. WORD wStorageTypes)
  48. {
  49. m_wStorageTypes = wStorageTypes;
  50. }
  51. inline
  52. CLocUIOption::EditorType
  53. CLocUIOption::GetEditor(void)
  54. const
  55. {
  56. return m_etEditor;
  57. }
  58. inline
  59. void
  60. CLocUIOption::GetDescription(
  61. CLString &strDesc)
  62. const
  63. {
  64. LTASSERT(m_hDescDll != NULL);
  65. LTASSERT(m_idsDesc != 0);
  66. strDesc.LoadString(m_hDescDll, m_idsDesc);
  67. }
  68. inline
  69. void
  70. CLocUIOption::GetHelpText(
  71. CLString &strHelp)
  72. const
  73. {
  74. LTASSERT(m_hHelpDll != NULL);
  75. LTASSERT(m_idsHelp != 0);
  76. strHelp.LoadString(m_hHelpDll, m_idsHelp);
  77. }
  78. inline
  79. WORD
  80. CLocUIOption::GetStorageTypes(void)
  81. const
  82. {
  83. return m_wStorageTypes;
  84. }
  85. inline
  86. void
  87. CLocUIOption::SetParent(
  88. CLocUIOptionSet *pParent)
  89. {
  90. m_pParent = pParent;
  91. }
  92. inline
  93. const CLocUIOptionSet *
  94. CLocUIOption::GetParent(void)
  95. const
  96. {
  97. return m_pParent;
  98. }
  99. inline
  100. const CLocUIOptionData &
  101. CLocUIOption::GetOptionValues(void) const
  102. {
  103. return m_Values;
  104. }
  105. inline
  106. CLocUIOptionData &
  107. CLocUIOption::GetOptionValues(void)
  108. {
  109. return m_Values;
  110. }
  111. inline
  112. void CLocUIOptionDef::SetReadOnly(
  113. ControlType ct)
  114. {
  115. m_ctReadOnly = ct;
  116. }
  117. inline
  118. void CLocUIOptionDef::SetVisible(
  119. ControlType ct)
  120. {
  121. m_ctVisible = ct;
  122. }