home *** CD-ROM | disk | FTP | other *** search
/ Prima Shareware 3 / DuCom_Prima-Shareware-3_cd1.bin / PROGRAMO / VB40 / SLIDER / SLIDER.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-14  |  5.0 KB  |  268 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "slider.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "Picture.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CSlider
  15.  
  16. IMPLEMENT_DYNCREATE(CSlider, CWnd)
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CSlider properties
  20.  
  21. unsigned long CSlider::GetNeedleColor()
  22. {
  23.     unsigned long result;
  24.     GetProperty(0x1, VT_I4, (void*)&result);
  25.     return result;
  26. }
  27.  
  28. void CSlider::SetNeedleColor(unsigned long propVal)
  29. {
  30.     SetProperty(0x1, VT_I4, propVal);
  31. }
  32.  
  33. unsigned long CSlider::GetBorderColor()
  34. {
  35.     unsigned long result;
  36.     GetProperty(0x2, VT_I4, (void*)&result);
  37.     return result;
  38. }
  39.  
  40. void CSlider::SetBorderColor(unsigned long propVal)
  41. {
  42.     SetProperty(0x2, VT_I4, propVal);
  43. }
  44.  
  45. short CSlider::GetMin()
  46. {
  47.     short result;
  48.     GetProperty(0x3, VT_I2, (void*)&result);
  49.     return result;
  50. }
  51.  
  52. void CSlider::SetMin(short propVal)
  53. {
  54.     SetProperty(0x3, VT_I2, propVal);
  55. }
  56.  
  57. short CSlider::GetMax()
  58. {
  59.     short result;
  60.     GetProperty(0x4, VT_I2, (void*)&result);
  61.     return result;
  62. }
  63.  
  64. void CSlider::SetMax(short propVal)
  65. {
  66.     SetProperty(0x4, VT_I2, propVal);
  67. }
  68.  
  69. short CSlider::GetPos()
  70. {
  71.     short result;
  72.     GetProperty(0x5, VT_I2, (void*)&result);
  73.     return result;
  74. }
  75.  
  76. void CSlider::SetPos(short propVal)
  77. {
  78.     SetProperty(0x5, VT_I2, propVal);
  79. }
  80.  
  81. long CSlider::GetOuterBevel()
  82. {
  83.     long result;
  84.     GetProperty(0x6, VT_I4, (void*)&result);
  85.     return result;
  86. }
  87.  
  88. void CSlider::SetOuterBevel(long propVal)
  89. {
  90.     SetProperty(0x6, VT_I4, propVal);
  91. }
  92.  
  93. long CSlider::GetInnerBevel()
  94. {
  95.     long result;
  96.     GetProperty(0x7, VT_I4, (void*)&result);
  97.     return result;
  98. }
  99.  
  100. void CSlider::SetInnerBevel(long propVal)
  101. {
  102.     SetProperty(0x7, VT_I4, propVal);
  103. }
  104.  
  105. short CSlider::GetOuterBevelWidth()
  106. {
  107.     short result;
  108.     GetProperty(0x8, VT_I2, (void*)&result);
  109.     return result;
  110. }
  111.  
  112. void CSlider::SetOuterBevelWidth(short propVal)
  113. {
  114.     SetProperty(0x8, VT_I2, propVal);
  115. }
  116.  
  117. short CSlider::GetInnerBevelWidth()
  118. {
  119.     short result;
  120.     GetProperty(0x9, VT_I2, (void*)&result);
  121.     return result;
  122. }
  123.  
  124. void CSlider::SetInnerBevelWidth(short propVal)
  125. {
  126.     SetProperty(0x9, VT_I2, propVal);
  127. }
  128.  
  129. short CSlider::GetBorderWidth()
  130. {
  131.     short result;
  132.     GetProperty(0xa, VT_I2, (void*)&result);
  133.     return result;
  134. }
  135.  
  136. void CSlider::SetBorderWidth(short propVal)
  137. {
  138.     SetProperty(0xa, VT_I2, propVal);
  139. }
  140.  
  141. unsigned long CSlider::GetShadowColor()
  142. {
  143.     unsigned long result;
  144.     GetProperty(0xb, VT_I4, (void*)&result);
  145.     return result;
  146. }
  147.  
  148. void CSlider::SetShadowColor(unsigned long propVal)
  149. {
  150.     SetProperty(0xb, VT_I4, propVal);
  151. }
  152.  
  153. unsigned long CSlider::GetHiliteColor()
  154. {
  155.     unsigned long result;
  156.     GetProperty(0xc, VT_I4, (void*)&result);
  157.     return result;
  158. }
  159.  
  160. void CSlider::SetHiliteColor(unsigned long propVal)
  161. {
  162.     SetProperty(0xc, VT_I4, propVal);
  163. }
  164.  
  165. long CSlider::GetOrientation()
  166. {
  167.     long result;
  168.     GetProperty(0xd, VT_I4, (void*)&result);
  169.     return result;
  170. }
  171.  
  172. void CSlider::SetOrientation(long propVal)
  173. {
  174.     SetProperty(0xd, VT_I4, propVal);
  175. }
  176.  
  177. short CSlider::GetTickMarks()
  178. {
  179.     short result;
  180.     GetProperty(0xe, VT_I2, (void*)&result);
  181.     return result;
  182. }
  183.  
  184. void CSlider::SetTickMarks(short propVal)
  185. {
  186.     SetProperty(0xe, VT_I2, propVal);
  187. }
  188.  
  189. unsigned long CSlider::GetTickColor()
  190. {
  191.     unsigned long result;
  192.     GetProperty(0xf, VT_I4, (void*)&result);
  193.     return result;
  194. }
  195.  
  196. void CSlider::SetTickColor(unsigned long propVal)
  197. {
  198.     SetProperty(0xf, VT_I4, propVal);
  199. }
  200.  
  201. long CSlider::GetTickStyle()
  202. {
  203.     long result;
  204.     GetProperty(0x10, VT_I4, (void*)&result);
  205.     return result;
  206. }
  207.  
  208. void CSlider::SetTickStyle(long propVal)
  209. {
  210.     SetProperty(0x10, VT_I4, propVal);
  211. }
  212.  
  213. CPicture CSlider::GetBackgroundBitmap()
  214. {
  215.     LPDISPATCH pDispatch;
  216.     GetProperty(0x11, VT_DISPATCH, (void*)&pDispatch);
  217.     return CPicture(pDispatch);
  218. }
  219.  
  220. void CSlider::SetBackgroundBitmap(LPDISPATCH propVal)
  221. {
  222.     SetProperty(0x11, VT_DISPATCH, propVal);
  223. }
  224.  
  225. CPicture CSlider::GetThumbBitmap()
  226. {
  227.     LPDISPATCH pDispatch;
  228.     GetProperty(0x12, VT_DISPATCH, (void*)&pDispatch);
  229.     return CPicture(pDispatch);
  230. }
  231.  
  232. void CSlider::SetThumbBitmap(LPDISPATCH propVal)
  233. {
  234.     SetProperty(0x12, VT_DISPATCH, propVal);
  235. }
  236.  
  237. short CSlider::GetCenterBar()
  238. {
  239.     short result;
  240.     GetProperty(0x13, VT_I2, (void*)&result);
  241.     return result;
  242. }
  243.  
  244. void CSlider::SetCenterBar(short propVal)
  245. {
  246.     SetProperty(0x13, VT_I2, propVal);
  247. }
  248.  
  249. OLE_COLOR CSlider::GetBackColor()
  250. {
  251.     OLE_COLOR result;
  252.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  253.     return result;
  254. }
  255.  
  256. void CSlider::SetBackColor(OLE_COLOR propVal)
  257. {
  258.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  259. }
  260.  
  261. /////////////////////////////////////////////////////////////////////////////
  262. // CSlider operations
  263.  
  264. void CSlider::AboutBox()
  265. {
  266.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  267. }
  268.