mogrouprenderer.cpp
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:2k
源码类别:

GIS编程

开发平台:

Visual C++

  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 "mogrouprenderer.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CMoGroupRenderer properties
  8. short CMoGroupRenderer::GetCount()
  9. {
  10. short result;
  11. GetProperty(0x2, VT_I2, (void*)&result);
  12. return result;
  13. }
  14. void CMoGroupRenderer::SetCount(short propVal)
  15. {
  16. SetProperty(0x2, VT_I2, propVal);
  17. }
  18. BOOL CMoGroupRenderer::GetDrawBackground()
  19. {
  20. BOOL result;
  21. GetProperty(0x1, VT_BOOL, (void*)&result);
  22. return result;
  23. }
  24. void CMoGroupRenderer::SetDrawBackground(BOOL propVal)
  25. {
  26. SetProperty(0x1, VT_BOOL, propVal);
  27. }
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CMoGroupRenderer operations
  30. LPDISPATCH CMoGroupRenderer::GetRenderer(short index)
  31. {
  32. LPDISPATCH result;
  33. static BYTE parms[] =
  34. VTS_I2;
  35. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  36. index);
  37. return result;
  38. }
  39. void CMoGroupRenderer::SetRefRenderer(short index, LPDISPATCH newValue)
  40. {
  41. static BYTE parms[] =
  42. VTS_I2 VTS_DISPATCH;
  43. InvokeHelper(0x5, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  44.  index, newValue);
  45. }
  46. short CMoGroupRenderer::Add(LPDISPATCH Renderer)
  47. {
  48. short result;
  49. static BYTE parms[] =
  50. VTS_DISPATCH;
  51. InvokeHelper(0x3, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  52. Renderer);
  53. return result;
  54. }
  55. void CMoGroupRenderer::Remove(short index)
  56. {
  57. static BYTE parms[] =
  58. VTS_I2;
  59. InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  60.  index);
  61. }