home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / treevwx / tvx3demo.exe / data.1 / pvibranch.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-18  |  3.8 KB  |  183 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "pvibranch.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "Picture.h"
  12.  
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CPVIBranch properties
  16.  
  17. CString CPVIBranch::GetText()
  18. {
  19.     CString result;
  20.     GetProperty(0x1, VT_BSTR, (void*)&result);
  21.     return result;
  22. }
  23.  
  24. void CPVIBranch::SetText(LPCTSTR propVal)
  25. {
  26.     SetProperty(0x1, VT_BSTR, propVal);
  27. }
  28.  
  29. long CPVIBranch::GetData()
  30. {
  31.     long result;
  32.     GetProperty(0x2, VT_I4, (void*)&result);
  33.     return result;
  34. }
  35.  
  36. void CPVIBranch::SetData(long propVal)
  37. {
  38.     SetProperty(0x2, VT_I4, propVal);
  39. }
  40.  
  41. short CPVIBranch::GetLevel()
  42. {
  43.     short result;
  44.     GetProperty(0x3, VT_I2, (void*)&result);
  45.     return result;
  46. }
  47.  
  48. void CPVIBranch::SetLevel(short propVal)
  49. {
  50.     SetProperty(0x3, VT_I2, propVal);
  51. }
  52.  
  53. BOOL CPVIBranch::GetIsOpen()
  54. {
  55.     BOOL result;
  56.     GetProperty(0x4, VT_BOOL, (void*)&result);
  57.     return result;
  58. }
  59.  
  60. void CPVIBranch::SetIsOpen(BOOL propVal)
  61. {
  62.     SetProperty(0x4, VT_BOOL, propVal);
  63. }
  64.  
  65. long CPVIBranch::GetStandardItemPicture()
  66. {
  67.     long result;
  68.     GetProperty(0x5, VT_I4, (void*)&result);
  69.     return result;
  70. }
  71.  
  72. void CPVIBranch::SetStandardItemPicture(long propVal)
  73. {
  74.     SetProperty(0x5, VT_I4, propVal);
  75. }
  76.  
  77. CPicture CPVIBranch::GetCustomItemPicture()
  78. {
  79.     LPDISPATCH pDispatch;
  80.     GetProperty(0x6, VT_DISPATCH, (void*)&pDispatch);
  81.     return CPicture(pDispatch);
  82. }
  83.  
  84. void CPVIBranch::SetCustomItemPicture(LPDISPATCH propVal)
  85. {
  86.     SetProperty(0x6, VT_DISPATCH, propVal);
  87. }
  88.  
  89. /////////////////////////////////////////////////////////////////////////////
  90. // CPVIBranch operations
  91.  
  92. void CPVIBranch::Clear()
  93. {
  94.     InvokeHelper(0x1f4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  95. }
  96.  
  97. CPVIBranch CPVIBranch::Add(long relationship, short relative, LPCTSTR Text)
  98. {
  99.     LPDISPATCH pDispatch;
  100.     static BYTE parms[] =
  101.         VTS_I4 VTS_I2 VTS_BSTR;
  102.     InvokeHelper(0x1f5, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  103.         relationship, relative, Text);
  104.     return CPVIBranch(pDispatch);
  105. }
  106.  
  107. CPVIBranch CPVIBranch::Get(long relationship, short relative)
  108. {
  109.     LPDISPATCH pDispatch;
  110.     static BYTE parms[] =
  111.         VTS_I4 VTS_I2;
  112.     InvokeHelper(0x1f6, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  113.         relationship, relative);
  114.     return CPVIBranch(pDispatch);
  115. }
  116.  
  117. void CPVIBranch::Remove()
  118. {
  119.     InvokeHelper(0x1f7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  120. }
  121.  
  122. void CPVIBranch::Lock()
  123. {
  124.     InvokeHelper(0x1f8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  125. }
  126.  
  127. void CPVIBranch::Unlock()
  128. {
  129.     InvokeHelper(0x1f9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  130. }
  131.  
  132. BOOL CPVIBranch::IsLocked()
  133. {
  134.     BOOL result;
  135.     InvokeHelper(0x1fa, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  136.     return result;
  137. }
  138.  
  139. BOOL CPVIBranch::IsValid()
  140. {
  141.     BOOL result;
  142.     InvokeHelper(0x1fb, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  143.     return result;
  144. }
  145.  
  146. BOOL CPVIBranch::IsMainBranch()
  147. {
  148.     BOOL result;
  149.     InvokeHelper(0x1fc, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  150.     return result;
  151. }
  152.  
  153. void CPVIBranch::Open(long cmd)
  154. {
  155.     static BYTE parms[] =
  156.         VTS_I4;
  157.     InvokeHelper(0x1fd, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  158.          cmd);
  159. }
  160.  
  161. void CPVIBranch::Close(long cmd)
  162. {
  163.     static BYTE parms[] =
  164.         VTS_I4;
  165.     InvokeHelper(0x1fe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  166.          cmd);
  167. }
  168.  
  169. void CPVIBranch::Select(long cmd)
  170. {
  171.     static BYTE parms[] =
  172.         VTS_I4;
  173.     InvokeHelper(0x1ff, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  174.          cmd);
  175. }
  176.  
  177. long CPVIBranch::GetHandle()
  178. {
  179.     long result;
  180.     InvokeHelper(0x200, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  181.     return result;
  182. }
  183.