home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.3 / shape / samples / MFC / SHAPDEMO / SHAPE3D.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-28  |  3.4 KB  |  181 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 "shape3d.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CShape3D
  12.  
  13. IMPLEMENT_DYNCREATE(CShape3D, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CShape3D properties
  17.  
  18. short CShape3D::GetLineWidth()
  19. {
  20.     short result;
  21.     GetProperty(0x1, VT_I2, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CShape3D::SetLineWidth(short propVal)
  26. {
  27.     SetProperty(0x1, VT_I2, propVal);
  28. }
  29.  
  30. short CShape3D::GetShape()
  31. {
  32.     short result;
  33.     GetProperty(0x2, VT_I2, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CShape3D::SetShape(short propVal)
  38. {
  39.     SetProperty(0x2, VT_I2, propVal);
  40. }
  41.  
  42. short CShape3D::GetShiftShapeLeft()
  43. {
  44.     short result;
  45.     GetProperty(0x3, VT_I2, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CShape3D::SetShiftShapeLeft(short propVal)
  50. {
  51.     SetProperty(0x3, VT_I2, propVal);
  52. }
  53.  
  54. short CShape3D::GetShiftShapeUp()
  55. {
  56.     short result;
  57.     GetProperty(0x4, VT_I2, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CShape3D::SetShiftShapeUp(short propVal)
  62. {
  63.     SetProperty(0x4, VT_I2, propVal);
  64. }
  65.  
  66. short CShape3D::GetShadowHorizontal()
  67. {
  68.     short result;
  69.     GetProperty(0x5, VT_I2, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CShape3D::SetShadowHorizontal(short propVal)
  74. {
  75.     SetProperty(0x5, VT_I2, propVal);
  76. }
  77.  
  78. short CShape3D::GetShadowVertical()
  79. {
  80.     short result;
  81.     GetProperty(0x6, VT_I2, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CShape3D::SetShadowVertical(short propVal)
  86. {
  87.     SetProperty(0x6, VT_I2, propVal);
  88. }
  89.  
  90. unsigned long CShape3D::GetShadowColor()
  91. {
  92.     unsigned long result;
  93.     GetProperty(0x7, VT_I4, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CShape3D::SetShadowColor(unsigned long propVal)
  98. {
  99.     SetProperty(0x7, VT_I4, propVal);
  100. }
  101.  
  102. unsigned long CShape3D::GetLineColor()
  103. {
  104.     unsigned long result;
  105.     GetProperty(0x8, VT_I4, (void*)&result);
  106.     return result;
  107. }
  108.  
  109. void CShape3D::SetLineColor(unsigned long propVal)
  110. {
  111.     SetProperty(0x8, VT_I4, propVal);
  112. }
  113.  
  114. BOOL CShape3D::GetTransparent()
  115. {
  116.     BOOL result;
  117.     GetProperty(0x9, VT_BOOL, (void*)&result);
  118.     return result;
  119. }
  120.  
  121. void CShape3D::SetTransparent(BOOL propVal)
  122. {
  123.     SetProperty(0x9, VT_BOOL, propVal);
  124. }
  125.  
  126. BOOL CShape3D::GetRotateSide()
  127. {
  128.     BOOL result;
  129.     GetProperty(0xa, VT_BOOL, (void*)&result);
  130.     return result;
  131. }
  132.  
  133. void CShape3D::SetRotateSide(BOOL propVal)
  134. {
  135.     SetProperty(0xa, VT_BOOL, propVal);
  136. }
  137.  
  138. BOOL CShape3D::GetSymmetrical()
  139. {
  140.     BOOL result;
  141.     GetProperty(0xb, VT_BOOL, (void*)&result);
  142.     return result;
  143. }
  144.  
  145. void CShape3D::SetSymmetrical(BOOL propVal)
  146. {
  147.     SetProperty(0xb, VT_BOOL, propVal);
  148. }
  149.  
  150. OLE_COLOR CShape3D::GetBackColor()
  151. {
  152.     OLE_COLOR result;
  153.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  154.     return result;
  155. }
  156.  
  157. void CShape3D::SetBackColor(OLE_COLOR propVal)
  158. {
  159.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  160. }
  161.  
  162. short CShape3D::Get_Shape()
  163. {
  164.     short result;
  165.     GetProperty(0x0, VT_I2, (void*)&result);
  166.     return result;
  167. }
  168.  
  169. void CShape3D::Set_Shape(short propVal)
  170. {
  171.     SetProperty(0x0, VT_I2, propVal);
  172. }
  173.  
  174. /////////////////////////////////////////////////////////////////////////////
  175. // CShape3D operations
  176.  
  177. void CShape3D::AboutBox()
  178. {
  179.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  180. }
  181.