vccolor.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 "vccolor.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CVcColor properties
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CVcColor operations
  10. short CVcColor::GetRed()
  11. {
  12. short result;
  13. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  14. return result;
  15. }
  16. void CVcColor::SetRed(short nNewValue)
  17. {
  18. static BYTE parms[] =
  19. VTS_I2;
  20. InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  21. nNewValue);
  22. }
  23. short CVcColor::GetGreen()
  24. {
  25. short result;
  26. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  27. return result;
  28. }
  29. void CVcColor::SetGreen(short nNewValue)
  30. {
  31. static BYTE parms[] =
  32. VTS_I2;
  33. InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  34. nNewValue);
  35. }
  36. short CVcColor::GetBlue()
  37. {
  38. short result;
  39. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  40. return result;
  41. }
  42. void CVcColor::SetBlue(short nNewValue)
  43. {
  44. static BYTE parms[] =
  45. VTS_I2;
  46. InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  47. nNewValue);
  48. }
  49. BOOL CVcColor::GetAutomatic()
  50. {
  51. BOOL result;
  52. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  53. return result;
  54. }
  55. void CVcColor::SetAutomatic(BOOL bNewValue)
  56. {
  57. static BYTE parms[] =
  58. VTS_BOOL;
  59. InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  60. bNewValue);
  61. }
  62. void CVcColor::Set(short Red, short Green, short Blue)
  63. {
  64. static BYTE parms[] =
  65. VTS_I2 VTS_I2 VTS_I2;
  66. InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  67. Red, Green, Blue);
  68. }