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.

212 lines
4.6 KiB

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  3. // Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "progressbar.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "Picture.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CProgressBar
  10. IMPLEMENT_DYNCREATE(CProgressBar, CWnd)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CProgressBar properties
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CProgressBar operations
  15. float CProgressBar::GetMax()
  16. {
  17. float result;
  18. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  19. return result;
  20. }
  21. void CProgressBar::SetMax(float newValue)
  22. {
  23. static BYTE parms[] =
  24. VTS_R4;
  25. InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  26. newValue);
  27. }
  28. float CProgressBar::GetMin()
  29. {
  30. float result;
  31. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  32. return result;
  33. }
  34. void CProgressBar::SetMin(float newValue)
  35. {
  36. static BYTE parms[] =
  37. VTS_R4;
  38. InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  39. newValue);
  40. }
  41. long CProgressBar::GetMousePointer()
  42. {
  43. long result;
  44. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  45. return result;
  46. }
  47. void CProgressBar::SetMousePointer(long nNewValue)
  48. {
  49. static BYTE parms[] =
  50. VTS_I4;
  51. InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  52. nNewValue);
  53. }
  54. CPicture CProgressBar::GetMouseIcon()
  55. {
  56. LPDISPATCH pDispatch;
  57. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  58. return CPicture(pDispatch);
  59. }
  60. void CProgressBar::SetRefMouseIcon(LPDISPATCH newValue)
  61. {
  62. static BYTE parms[] =
  63. VTS_DISPATCH;
  64. InvokeHelper(0x4, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  65. newValue);
  66. }
  67. void CProgressBar::SetMouseIcon(LPDISPATCH newValue)
  68. {
  69. static BYTE parms[] =
  70. VTS_DISPATCH;
  71. InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  72. newValue);
  73. }
  74. float CProgressBar::GetValue()
  75. {
  76. float result;
  77. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  78. return result;
  79. }
  80. void CProgressBar::SetValue(float newValue)
  81. {
  82. static BYTE parms[] =
  83. VTS_R4;
  84. InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  85. newValue);
  86. }
  87. long CProgressBar::GetOLEDropMode()
  88. {
  89. long result;
  90. InvokeHelper(0x60f, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  91. return result;
  92. }
  93. void CProgressBar::SetOLEDropMode(long nNewValue)
  94. {
  95. static BYTE parms[] =
  96. VTS_I4;
  97. InvokeHelper(0x60f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  98. nNewValue);
  99. }
  100. long CProgressBar::GetAppearance()
  101. {
  102. long result;
  103. InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  104. return result;
  105. }
  106. void CProgressBar::SetAppearance(long nNewValue)
  107. {
  108. static BYTE parms[] =
  109. VTS_I4;
  110. InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  111. nNewValue);
  112. }
  113. long CProgressBar::GetBorderStyle()
  114. {
  115. long result;
  116. InvokeHelper(DISPID_BORDERSTYLE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  117. return result;
  118. }
  119. void CProgressBar::SetBorderStyle(long nNewValue)
  120. {
  121. static BYTE parms[] =
  122. VTS_I4;
  123. InvokeHelper(DISPID_BORDERSTYLE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  124. nNewValue);
  125. }
  126. BOOL CProgressBar::GetEnabled()
  127. {
  128. BOOL result;
  129. InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  130. return result;
  131. }
  132. void CProgressBar::SetEnabled(BOOL bNewValue)
  133. {
  134. static BYTE parms[] =
  135. VTS_BOOL;
  136. InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  137. bNewValue);
  138. }
  139. long CProgressBar::GetHWnd()
  140. {
  141. long result;
  142. InvokeHelper(DISPID_HWND, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  143. return result;
  144. }
  145. void CProgressBar::OLEDrag()
  146. {
  147. InvokeHelper(0x610, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  148. }
  149. long CProgressBar::GetOrientation()
  150. {
  151. long result;
  152. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  153. return result;
  154. }
  155. void CProgressBar::SetOrientation(long nNewValue)
  156. {
  157. static BYTE parms[] =
  158. VTS_I4;
  159. InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  160. nNewValue);
  161. }
  162. long CProgressBar::GetScrolling()
  163. {
  164. long result;
  165. InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  166. return result;
  167. }
  168. void CProgressBar::SetScrolling(long nNewValue)
  169. {
  170. static BYTE parms[] =
  171. VTS_I4;
  172. InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  173. nNewValue);
  174. }
  175. void CProgressBar::Refresh()
  176. {
  177. InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  178. }