vclabel.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 "vclabel.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "VcBackdrop.h"
  8. #include "vcfont.h"
  9. #include "vctextlayout.h"
  10. #include "Font.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CVcLabel properties
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CVcLabel operations
  15. CVcBackdrop CVcLabel::GetBackdrop()
  16. {
  17. LPDISPATCH pDispatch;
  18. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  19. return CVcBackdrop(pDispatch);
  20. }
  21. CString CVcLabel::GetFormat()
  22. {
  23. CString result;
  24. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  25. return result;
  26. }
  27. void CVcLabel::SetFormat(LPCTSTR lpszNewValue)
  28. {
  29. static BYTE parms[] =
  30. VTS_BSTR;
  31. InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  32. lpszNewValue);
  33. }
  34. CVcFont CVcLabel::GetVtFont()
  35. {
  36. LPDISPATCH pDispatch;
  37. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  38. return CVcFont(pDispatch);
  39. }
  40. BOOL CVcLabel::GetAuto()
  41. {
  42. BOOL result;
  43. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  44. return result;
  45. }
  46. void CVcLabel::SetAuto(BOOL bNewValue)
  47. {
  48. static BYTE parms[] =
  49. VTS_BOOL;
  50. InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  51. bNewValue);
  52. }
  53. BOOL CVcLabel::GetStanding()
  54. {
  55. BOOL result;
  56. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  57. return result;
  58. }
  59. void CVcLabel::SetStanding(BOOL bNewValue)
  60. {
  61. static BYTE parms[] =
  62. VTS_BOOL;
  63. InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  64. bNewValue);
  65. }
  66. CVcTextLayout CVcLabel::GetTextLayout()
  67. {
  68. LPDISPATCH pDispatch;
  69. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  70. return CVcTextLayout(pDispatch);
  71. }
  72. short CVcLabel::GetFormatLength()
  73. {
  74. short result;
  75. InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  76. return result;
  77. }
  78. void CVcLabel::SetRefFont(LPDISPATCH newValue)
  79. {
  80. static BYTE parms[] =
  81. VTS_DISPATCH;
  82. InvokeHelper(0x8, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  83. newValue);
  84. }
  85. COleFont CVcLabel::GetFont()
  86. {
  87. LPDISPATCH pDispatch;
  88. InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  89. return COleFont(pDispatch);
  90. }