vcbrush.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 "vcbrush.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "vccolor.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CVcBrush properties
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CVcBrush operations
  12. long CVcBrush::GetStyle()
  13. {
  14. long result;
  15. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  16. return result;
  17. }
  18. void CVcBrush::SetStyle(long nNewValue)
  19. {
  20. static BYTE parms[] =
  21. VTS_I4;
  22. InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  23. nNewValue);
  24. }
  25. CVcColor CVcBrush::GetFillColor()
  26. {
  27. LPDISPATCH pDispatch;
  28. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  29. return CVcColor(pDispatch);
  30. }
  31. CVcColor CVcBrush::GetPatternColor()
  32. {
  33. LPDISPATCH pDispatch;
  34. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  35. return CVcColor(pDispatch);
  36. }
  37. long CVcBrush::GetIndex()
  38. {
  39. long result;
  40. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  41. return result;
  42. }
  43. void CVcBrush::SetIndex(long nNewValue)
  44. {
  45. static BYTE parms[] =
  46. VTS_I4;
  47. InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  48. nNewValue);
  49. }