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.2 KiB

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