home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / UITools / qcgrpbut.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-21  |  6.0 KB  |  312 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 "qcgrpbut.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CQCGrpBut
  12.  
  13. IMPLEMENT_DYNCREATE(CQCGrpBut, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CQCGrpBut properties
  17.  
  18. CString CQCGrpBut::GetControlTitleFont()
  19. {
  20.     CString result;
  21.     GetProperty(0x1, VT_BSTR, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CQCGrpBut::SetControlTitleFont(LPCTSTR propVal)
  26. {
  27.     SetProperty(0x1, VT_BSTR, propVal);
  28. }
  29.  
  30. long CQCGrpBut::GetControlTitleColor()
  31. {
  32.     long result;
  33.     GetProperty(0x2, VT_I4, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CQCGrpBut::SetControlTitleColor(long propVal)
  38. {
  39.     SetProperty(0x2, VT_I4, propVal);
  40. }
  41.  
  42. long CQCGrpBut::GetControlTitleFontStyle()
  43. {
  44.     long result;
  45.     GetProperty(0x3, VT_I4, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CQCGrpBut::SetControlTitleFontStyle(long propVal)
  50. {
  51.     SetProperty(0x3, VT_I4, propVal);
  52. }
  53.  
  54. long CQCGrpBut::GetControlTitleFontSize()
  55. {
  56.     long result;
  57.     GetProperty(0x4, VT_I4, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CQCGrpBut::SetControlTitleFontSize(long propVal)
  62. {
  63.     SetProperty(0x4, VT_I4, propVal);
  64. }
  65.  
  66. long CQCGrpBut::GetControlBorderStyle()
  67. {
  68.     long result;
  69.     GetProperty(0x5, VT_I4, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CQCGrpBut::SetControlBorderStyle(long propVal)
  74. {
  75.     SetProperty(0x5, VT_I4, propVal);
  76. }
  77.  
  78. long CQCGrpBut::GetControlBorderColor()
  79. {
  80.     long result;
  81.     GetProperty(0x6, VT_I4, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CQCGrpBut::SetControlBorderColor(long propVal)
  86. {
  87.     SetProperty(0x6, VT_I4, propVal);
  88. }
  89.  
  90. long CQCGrpBut::GetControlColor()
  91. {
  92.     long result;
  93.     GetProperty(0x7, VT_I4, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CQCGrpBut::SetControlColor(long propVal)
  98. {
  99.     SetProperty(0x7, VT_I4, propVal);
  100. }
  101.  
  102. long CQCGrpBut::GetControlBackgroundColor()
  103. {
  104.     long result;
  105.     GetProperty(0x8, VT_I4, (void*)&result);
  106.     return result;
  107. }
  108.  
  109. void CQCGrpBut::SetControlBackgroundColor(long propVal)
  110. {
  111.     SetProperty(0x8, VT_I4, propVal);
  112. }
  113.  
  114. double CQCGrpBut::GetControlBottom()
  115. {
  116.     double result;
  117.     GetProperty(0x9, VT_R8, (void*)&result);
  118.     return result;
  119. }
  120.  
  121. void CQCGrpBut::SetControlBottom(double propVal)
  122. {
  123.     SetProperty(0x9, VT_R8, propVal);
  124. }
  125.  
  126. double CQCGrpBut::GetControlLeft()
  127. {
  128.     double result;
  129.     GetProperty(0xa, VT_R8, (void*)&result);
  130.     return result;
  131. }
  132.  
  133. void CQCGrpBut::SetControlLeft(double propVal)
  134. {
  135.     SetProperty(0xa, VT_R8, propVal);
  136. }
  137.  
  138. double CQCGrpBut::GetControlRight()
  139. {
  140.     double result;
  141.     GetProperty(0xb, VT_R8, (void*)&result);
  142.     return result;
  143. }
  144.  
  145. void CQCGrpBut::SetControlRight(double propVal)
  146. {
  147.     SetProperty(0xb, VT_R8, propVal);
  148. }
  149.  
  150. double CQCGrpBut::GetControlTop()
  151. {
  152.     double result;
  153.     GetProperty(0xc, VT_R8, (void*)&result);
  154.     return result;
  155. }
  156.  
  157. void CQCGrpBut::SetControlTop(double propVal)
  158. {
  159.     SetProperty(0xc, VT_R8, propVal);
  160. }
  161.  
  162. long CQCGrpBut::GetControlBorderThickness()
  163. {
  164.     long result;
  165.     GetProperty(0xd, VT_I4, (void*)&result);
  166.     return result;
  167. }
  168.  
  169. void CQCGrpBut::SetControlBorderThickness(long propVal)
  170. {
  171.     SetProperty(0xd, VT_I4, propVal);
  172. }
  173.  
  174. CString CQCGrpBut::GetControlTitleString()
  175. {
  176.     CString result;
  177.     GetProperty(0xe, VT_BSTR, (void*)&result);
  178.     return result;
  179. }
  180.  
  181. void CQCGrpBut::SetControlTitleString(LPCTSTR propVal)
  182. {
  183.     SetProperty(0xe, VT_BSTR, propVal);
  184. }
  185.  
  186. long CQCGrpBut::GetControlButtonStyle()
  187. {
  188.     long result;
  189.     GetProperty(0xf, VT_I4, (void*)&result);
  190.     return result;
  191. }
  192.  
  193. void CQCGrpBut::SetControlButtonStyle(long propVal)
  194. {
  195.     SetProperty(0xf, VT_I4, propVal);
  196. }
  197.  
  198. long CQCGrpBut::GetControlButtonLook()
  199. {
  200.     long result;
  201.     GetProperty(0x10, VT_I4, (void*)&result);
  202.     return result;
  203. }
  204.  
  205. void CQCGrpBut::SetControlButtonLook(long propVal)
  206. {
  207.     SetProperty(0x10, VT_I4, propVal);
  208. }
  209.  
  210. CString CQCGrpBut::GetControllButtonString()
  211. {
  212.     CString result;
  213.     GetProperty(0x11, VT_BSTR, (void*)&result);
  214.     return result;
  215. }
  216.  
  217. void CQCGrpBut::SetControllButtonString(LPCTSTR propVal)
  218. {
  219.     SetProperty(0x11, VT_BSTR, propVal);
  220. }
  221.  
  222. BOOL CQCGrpBut::GetControlButtonLeftText()
  223. {
  224.     BOOL result;
  225.     GetProperty(0x12, VT_BOOL, (void*)&result);
  226.     return result;
  227. }
  228.  
  229. void CQCGrpBut::SetControlButtonLeftText(BOOL propVal)
  230. {
  231.     SetProperty(0x12, VT_BOOL, propVal);
  232. }
  233.  
  234. long CQCGrpBut::GetControlNumButtons()
  235. {
  236.     long result;
  237.     GetProperty(0x13, VT_I4, (void*)&result);
  238.     return result;
  239. }
  240.  
  241. void CQCGrpBut::SetControlNumButtons(long propVal)
  242. {
  243.     SetProperty(0x13, VT_I4, propVal);
  244. }
  245.  
  246. BOOL CQCGrpBut::GetControlButtonHorizontal()
  247. {
  248.     BOOL result;
  249.     GetProperty(0x14, VT_BOOL, (void*)&result);
  250.     return result;
  251. }
  252.  
  253. void CQCGrpBut::SetControlButtonHorizontal(BOOL propVal)
  254. {
  255.     SetProperty(0x14, VT_BOOL, propVal);
  256. }
  257.  
  258. long CQCGrpBut::GetControlOffColor()
  259. {
  260.     long result;
  261.     GetProperty(0x15, VT_I4, (void*)&result);
  262.     return result;
  263. }
  264.  
  265. void CQCGrpBut::SetControlOffColor(long propVal)
  266. {
  267.     SetProperty(0x15, VT_I4, propVal);
  268. }
  269.  
  270. long CQCGrpBut::GetControlButtonState()
  271. {
  272.     long result;
  273.     GetProperty(0x16, VT_I4, (void*)&result);
  274.     return result;
  275. }
  276.  
  277. void CQCGrpBut::SetControlButtonState(long propVal)
  278. {
  279.     SetProperty(0x16, VT_I4, propVal);
  280. }
  281.  
  282. /////////////////////////////////////////////////////////////////////////////
  283. // CQCGrpBut operations
  284.  
  285. long CQCGrpBut::ChangeButtonState(long nSel)
  286. {
  287.     long result;
  288.     static BYTE parms[] =
  289.         VTS_I4;
  290.     InvokeHelper(0x17, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  291.         nSel);
  292.     return result;
  293. }
  294.  
  295. void CQCGrpBut::ChangeButtonColor(long rgbNewColor, long nSel)
  296. {
  297.     static BYTE parms[] =
  298.         VTS_I4 VTS_I4;
  299.     InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  300.          rgbNewColor, nSel);
  301. }
  302.  
  303. void CQCGrpBut::UpdateControl()
  304. {
  305.     InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  306. }
  307.  
  308. void CQCGrpBut::AboutBox()
  309. {
  310.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  311. }
  312.