home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.2 / line / samples / MFC / LINEDEMO / LINE3D.CPP next >
Encoding:
C/C++ Source or Header  |  1996-10-20  |  2.4 KB  |  121 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 "line3d.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CLine3D
  12.  
  13. IMPLEMENT_DYNCREATE(CLine3D, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CLine3D properties
  17.  
  18. short CLine3D::GetLineOrientation()
  19. {
  20.     short result;
  21.     GetProperty(0x1, VT_I2, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CLine3D::SetLineOrientation(short propVal)
  26. {
  27.     SetProperty(0x1, VT_I2, propVal);
  28. }
  29.  
  30. short CLine3D::GetLineWidth()
  31. {
  32.     short result;
  33.     GetProperty(0x2, VT_I2, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CLine3D::SetLineWidth(short propVal)
  38. {
  39.     SetProperty(0x2, VT_I2, propVal);
  40. }
  41.  
  42. short CLine3D::GetLineStyle()
  43. {
  44.     short result;
  45.     GetProperty(0x3, VT_I2, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CLine3D::SetLineStyle(short propVal)
  50. {
  51.     SetProperty(0x3, VT_I2, propVal);
  52. }
  53.  
  54. BOOL CLine3D::GetWidthToRectShape()
  55. {
  56.     BOOL result;
  57.     GetProperty(0x4, VT_BOOL, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CLine3D::SetWidthToRectShape(BOOL propVal)
  62. {
  63.     SetProperty(0x4, VT_BOOL, propVal);
  64. }
  65.  
  66. short CLine3D::GetShadowHorizontal()
  67. {
  68.     short result;
  69.     GetProperty(0x5, VT_I2, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CLine3D::SetShadowHorizontal(short propVal)
  74. {
  75.     SetProperty(0x5, VT_I2, propVal);
  76. }
  77.  
  78. short CLine3D::GetShadowVertical()
  79. {
  80.     short result;
  81.     GetProperty(0x6, VT_I2, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CLine3D::SetShadowVertical(short propVal)
  86. {
  87.     SetProperty(0x6, VT_I2, propVal);
  88. }
  89.  
  90. OLE_COLOR CLine3D::GetForeColor()
  91. {
  92.     OLE_COLOR result;
  93.     GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CLine3D::SetForeColor(OLE_COLOR propVal)
  98. {
  99.     SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
  100. }
  101.  
  102. unsigned long CLine3D::GetShadowColor()
  103. {
  104.     unsigned long result;
  105.     GetProperty(0x7, VT_I4, (void*)&result);
  106.     return result;
  107. }
  108.  
  109. void CLine3D::SetShadowColor(unsigned long propVal)
  110. {
  111.     SetProperty(0x7, VT_I4, propVal);
  112. }
  113.  
  114. /////////////////////////////////////////////////////////////////////////////
  115. // CLine3D operations
  116.  
  117. void CLine3D::AboutBox()
  118. {
  119.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  120. }
  121.