vcpen.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 "vcpen.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "vccolor.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CVcPen properties
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CVcPen operations
  12. long CVcPen::GetStyle()
  13. {
  14. long result;
  15. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  16. return result;
  17. }
  18. void CVcPen::SetStyle(long nNewValue)
  19. {
  20. static BYTE parms[] =
  21. VTS_I4;
  22. InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  23. nNewValue);
  24. }
  25. long CVcPen::GetJoin()
  26. {
  27. long result;
  28. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  29. return result;
  30. }
  31. void CVcPen::SetJoin(long nNewValue)
  32. {
  33. static BYTE parms[] =
  34. VTS_I4;
  35. InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  36. nNewValue);
  37. }
  38. long CVcPen::GetCap()
  39. {
  40. long result;
  41. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  42. return result;
  43. }
  44. void CVcPen::SetCap(long nNewValue)
  45. {
  46. static BYTE parms[] =
  47. VTS_I4;
  48. InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  49. nNewValue);
  50. }
  51. CVcColor CVcPen::GetVtColor()
  52. {
  53. LPDISPATCH pDispatch;
  54. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  55. return CVcColor(pDispatch);
  56. }
  57. float CVcPen::GetWidth()
  58. {
  59. float result;
  60. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  61. return result;
  62. }
  63. void CVcPen::SetWidth(float newValue)
  64. {
  65. static BYTE parms[] =
  66. VTS_R4;
  67. InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  68. newValue);
  69. }
  70. float CVcPen::GetLimit()
  71. {
  72. float result;
  73. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  74. return result;
  75. }
  76. void CVcPen::SetLimit(float newValue)
  77. {
  78. static BYTE parms[] =
  79. VTS_R4;
  80. InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  81. newValue);
  82. }