home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.1 / PVTREE~1.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  9.5 KB  |  476 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 "pvtreeview.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "font.h"
  12. #include "branch.h"
  13. #include "picture.h"
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CPVTreeView
  17.  
  18. IMPLEMENT_DYNCREATE(CPVTreeView, CWnd)
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CPVTreeView properties
  22.  
  23. OLE_COLOR CPVTreeView::GetBackColor()
  24. {
  25.     OLE_COLOR result;
  26.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  27.     return result;
  28. }
  29.  
  30. void CPVTreeView::SetBackColor(OLE_COLOR propVal)
  31. {
  32.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  33. }
  34.  
  35. BOOL CPVTreeView::GetEnabled()
  36. {
  37.     BOOL result;
  38.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  39.     return result;
  40. }
  41.  
  42. void CPVTreeView::SetEnabled(BOOL propVal)
  43. {
  44.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  45. }
  46.  
  47. COleFont CPVTreeView::GetFont()
  48. {
  49.     LPDISPATCH pDispatch;
  50.     GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  51.     return COleFont(pDispatch);
  52. }
  53.  
  54. void CPVTreeView::SetFont(LPDISPATCH propVal)
  55. {
  56.     SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  57. }
  58.  
  59. OLE_COLOR CPVTreeView::GetForeColor()
  60. {
  61.     OLE_COLOR result;
  62.     GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
  63.     return result;
  64. }
  65.  
  66. void CPVTreeView::SetForeColor(OLE_COLOR propVal)
  67. {
  68.     SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
  69. }
  70.  
  71. OLE_HANDLE CPVTreeView::GetHWnd()
  72. {
  73.     OLE_HANDLE result;
  74.     GetProperty(DISPID_HWND, VT_I4, (void*)&result);
  75.     return result;
  76. }
  77.  
  78. void CPVTreeView::SetHWnd(OLE_HANDLE propVal)
  79. {
  80.     SetProperty(DISPID_HWND, VT_I4, propVal);
  81. }
  82.  
  83. short CPVTreeView::GetSelectMode()
  84. {
  85.     short result;
  86.     GetProperty(0x1, VT_I2, (void*)&result);
  87.     return result;
  88. }
  89.  
  90. void CPVTreeView::SetSelectMode(short propVal)
  91. {
  92.     SetProperty(0x1, VT_I2, propVal);
  93. }
  94.  
  95. BOOL CPVTreeView::GetSort()
  96. {
  97.     BOOL result;
  98.     GetProperty(0x2, VT_BOOL, (void*)&result);
  99.     return result;
  100. }
  101.  
  102. void CPVTreeView::SetSort(BOOL propVal)
  103. {
  104.     SetProperty(0x2, VT_BOOL, propVal);
  105. }
  106.  
  107. BOOL CPVTreeView::GetUseTabStops()
  108. {
  109.     BOOL result;
  110.     GetProperty(0x3, VT_BOOL, (void*)&result);
  111.     return result;
  112. }
  113.  
  114. void CPVTreeView::SetUseTabStops(BOOL propVal)
  115. {
  116.     SetProperty(0x3, VT_BOOL, propVal);
  117. }
  118.  
  119. BOOL CPVTreeView::GetIntegralHeight()
  120. {
  121.     BOOL result;
  122.     GetProperty(0x4, VT_BOOL, (void*)&result);
  123.     return result;
  124. }
  125.  
  126. void CPVTreeView::SetIntegralHeight(BOOL propVal)
  127. {
  128.     SetProperty(0x4, VT_BOOL, propVal);
  129. }
  130.  
  131. BOOL CPVTreeView::GetMultiColumn()
  132. {
  133.     BOOL result;
  134.     GetProperty(0x5, VT_BOOL, (void*)&result);
  135.     return result;
  136. }
  137.  
  138. void CPVTreeView::SetMultiColumn(BOOL propVal)
  139. {
  140.     SetProperty(0x5, VT_BOOL, propVal);
  141. }
  142.  
  143. BOOL CPVTreeView::GetEnableMicroBitmaps()
  144. {
  145.     BOOL result;
  146.     GetProperty(0x6, VT_BOOL, (void*)&result);
  147.     return result;
  148. }
  149.  
  150. void CPVTreeView::SetEnableMicroBitmaps(BOOL propVal)
  151. {
  152.     SetProperty(0x6, VT_BOOL, propVal);
  153. }
  154.  
  155. BOOL CPVTreeView::GetEnableBitmaps()
  156. {
  157.     BOOL result;
  158.     GetProperty(0x7, VT_BOOL, (void*)&result);
  159.     return result;
  160. }
  161.  
  162. void CPVTreeView::SetEnableBitmaps(BOOL propVal)
  163. {
  164.     SetProperty(0x7, VT_BOOL, propVal);
  165. }
  166.  
  167. BOOL CPVTreeView::GetEnableLines()
  168. {
  169.     BOOL result;
  170.     GetProperty(0x8, VT_BOOL, (void*)&result);
  171.     return result;
  172. }
  173.  
  174. void CPVTreeView::SetEnableLines(BOOL propVal)
  175. {
  176.     SetProperty(0x8, VT_BOOL, propVal);
  177. }
  178.  
  179. BOOL CPVTreeView::GetAutoOpen()
  180. {
  181.     BOOL result;
  182.     GetProperty(0x9, VT_BOOL, (void*)&result);
  183.     return result;
  184. }
  185.  
  186. void CPVTreeView::SetAutoOpen(BOOL propVal)
  187. {
  188.     SetProperty(0x9, VT_BOOL, propVal);
  189. }
  190.  
  191. short CPVTreeView::GetHorizontalExtent()
  192. {
  193.     short result;
  194.     GetProperty(0xa, VT_I2, (void*)&result);
  195.     return result;
  196. }
  197.  
  198. void CPVTreeView::SetHorizontalExtent(short propVal)
  199. {
  200.     SetProperty(0xa, VT_I2, propVal);
  201. }
  202.  
  203. BOOL CPVTreeView::GetProportionalScrollBars()
  204. {
  205.     BOOL result;
  206.     GetProperty(0xb, VT_BOOL, (void*)&result);
  207.     return result;
  208. }
  209.  
  210. void CPVTreeView::SetProportionalScrollBars(BOOL propVal)
  211. {
  212.     SetProperty(0xb, VT_BOOL, propVal);
  213. }
  214.  
  215. CBranch CPVTreeView::GetBranches()
  216. {
  217.     LPDISPATCH pDispatch;
  218.     GetProperty(0x13, VT_DISPATCH, (void*)&pDispatch);
  219.     return CBranch(pDispatch);
  220. }
  221.  
  222. void CPVTreeView::SetBranches(LPDISPATCH propVal)
  223. {
  224.     SetProperty(0x13, VT_DISPATCH, propVal);
  225. }
  226.  
  227. short CPVTreeView::GetAppearance()
  228. {
  229.     short result;
  230.     GetProperty(DISPID_APPEARANCE, VT_I2, (void*)&result);
  231.     return result;
  232. }
  233.  
  234. void CPVTreeView::SetAppearance(short propVal)
  235. {
  236.     SetProperty(DISPID_APPEARANCE, VT_I2, propVal);
  237. }
  238.  
  239. short CPVTreeView::GetBorderStyle()
  240. {
  241.     short result;
  242.     GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  243.     return result;
  244. }
  245.  
  246. void CPVTreeView::SetBorderStyle(short propVal)
  247. {
  248.     SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  249. }
  250.  
  251. BOOL CPVTreeView::GetAlwaysShowSelection()
  252. {
  253.     BOOL result;
  254.     GetProperty(0xc, VT_BOOL, (void*)&result);
  255.     return result;
  256. }
  257.  
  258. void CPVTreeView::SetAlwaysShowSelection(BOOL propVal)
  259. {
  260.     SetProperty(0xc, VT_BOOL, propVal);
  261. }
  262.  
  263. short CPVTreeView::GetMultiColumnStyle()
  264. {
  265.     short result;
  266.     GetProperty(0xd, VT_I2, (void*)&result);
  267.     return result;
  268. }
  269.  
  270. void CPVTreeView::SetMultiColumnStyle(short propVal)
  271. {
  272.     SetProperty(0xd, VT_I2, propVal);
  273. }
  274.  
  275. short CPVTreeView::GetColumnWidth()
  276. {
  277.     short result;
  278.     GetProperty(0xe, VT_I2, (void*)&result);
  279.     return result;
  280. }
  281.  
  282. void CPVTreeView::SetColumnWidth(short propVal)
  283. {
  284.     SetProperty(0xe, VT_I2, propVal);
  285. }
  286.  
  287. short CPVTreeView::GetNumberOfColumns()
  288. {
  289.     short result;
  290.     GetProperty(0xf, VT_I2, (void*)&result);
  291.     return result;
  292. }
  293.  
  294. void CPVTreeView::SetNumberOfColumns(short propVal)
  295. {
  296.     SetProperty(0xf, VT_I2, propVal);
  297. }
  298.  
  299. short CPVTreeView::GetTabPointCount()
  300. {
  301.     short result;
  302.     GetProperty(0x14, VT_I2, (void*)&result);
  303.     return result;
  304. }
  305.  
  306. void CPVTreeView::SetTabPointCount(short propVal)
  307. {
  308.     SetProperty(0x14, VT_I2, propVal);
  309. }
  310.  
  311. long CPVTreeView::GetCount()
  312. {
  313.     long result;
  314.     GetProperty(0x15, VT_I4, (void*)&result);
  315.     return result;
  316. }
  317.  
  318. void CPVTreeView::SetCount(long propVal)
  319. {
  320.     SetProperty(0x15, VT_I4, propVal);
  321. }
  322.  
  323. long CPVTreeView::GetVisibleCount()
  324. {
  325.     long result;
  326.     GetProperty(0x16, VT_I4, (void*)&result);
  327.     return result;
  328. }
  329.  
  330. void CPVTreeView::SetVisibleCount(long propVal)
  331. {
  332.     SetProperty(0x16, VT_I4, propVal);
  333. }
  334.  
  335. BOOL CPVTreeView::GetUseStateBitmaps()
  336. {
  337.     BOOL result;
  338.     GetProperty(0x10, VT_BOOL, (void*)&result);
  339.     return result;
  340. }
  341.  
  342. void CPVTreeView::SetUseStateBitmaps(BOOL propVal)
  343. {
  344.     SetProperty(0x10, VT_BOOL, propVal);
  345. }
  346.  
  347. CPicture CPVTreeView::GetCustomDefaultPicture()
  348. {
  349.     LPDISPATCH pDispatch;
  350.     GetProperty(0x17, VT_DISPATCH, (void*)&pDispatch);
  351.     return CPicture(pDispatch);
  352. }
  353.  
  354. void CPVTreeView::SetCustomDefaultPicture(LPDISPATCH propVal)
  355. {
  356.     SetProperty(0x17, VT_DISPATCH, propVal);
  357. }
  358.  
  359. short CPVTreeView::GetStandardDefaultPicture()
  360. {
  361.     short result;
  362.     GetProperty(0x11, VT_I2, (void*)&result);
  363.     return result;
  364. }
  365.  
  366. void CPVTreeView::SetStandardDefaultPicture(short propVal)
  367. {
  368.     SetProperty(0x11, VT_I2, propVal);
  369. }
  370.  
  371. short CPVTreeView::GetIndent()
  372. {
  373.     short result;
  374.     GetProperty(0x12, VT_I2, (void*)&result);
  375.     return result;
  376. }
  377.  
  378. void CPVTreeView::SetIndent(short propVal)
  379. {
  380.     SetProperty(0x12, VT_I2, propVal);
  381. }
  382.  
  383. /////////////////////////////////////////////////////////////////////////////
  384. // CPVTreeView operations
  385.  
  386. short CPVTreeView::GetTabPoint(short index)
  387. {
  388.     short result;
  389.     static BYTE parms[] =
  390.         VTS_I2;
  391.     InvokeHelper(0x1d, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  392.         index);
  393.     return result;
  394. }
  395.  
  396. void CPVTreeView::SetTabPoint(short index, short nNewValue)
  397. {
  398.     static BYTE parms[] =
  399.         VTS_I2 VTS_I2;
  400.     InvokeHelper(0x1d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  401.          index, nNewValue);
  402. }
  403.  
  404. void CPVTreeView::ClearTabStops()
  405. {
  406.     InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  407. }
  408.  
  409. short CPVTreeView::GetStandardLevelPicture(short Level)
  410. {
  411.     short result;
  412.     static BYTE parms[] =
  413.         VTS_I2;
  414.     InvokeHelper(0x1e, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  415.         Level);
  416.     return result;
  417. }
  418.  
  419. void CPVTreeView::SetStandardLevelPicture(short Level, short nNewValue)
  420. {
  421.     static BYTE parms[] =
  422.         VTS_I2 VTS_I2;
  423.     InvokeHelper(0x1e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  424.          Level, nNewValue);
  425. }
  426.  
  427. CPicture CPVTreeView::GetCustomLevelPicture(short Level)
  428. {
  429.     LPDISPATCH pDispatch;
  430.     static BYTE parms[] =
  431.         VTS_I2;
  432.     InvokeHelper(0x1f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, parms,
  433.         Level);
  434.     return CPicture(pDispatch);
  435. }
  436.  
  437. void CPVTreeView::SetCustomLevelPicture(short Level, LPDISPATCH newValue)
  438. {
  439.     static BYTE parms[] =
  440.         VTS_I2 VTS_DISPATCH;
  441.     InvokeHelper(0x1f, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  442.          Level, newValue);
  443. }
  444.  
  445. CBranch CPVTreeView::Find(short relationship, LPDISPATCH relative, LPCTSTR text)
  446. {
  447.     LPDISPATCH pDispatch;
  448.     static BYTE parms[] =
  449.         VTS_I2 VTS_DISPATCH VTS_BSTR;
  450.     InvokeHelper(0x19, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  451.         relationship, relative, text);
  452.     return CBranch(pDispatch);
  453. }
  454.  
  455. void CPVTreeView::BeginInPlaceEdit()
  456. {
  457.     InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  458. }
  459.  
  460. void CPVTreeView::EndInPlaceEdit()
  461. {
  462.     InvokeHelper(0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  463. }
  464.  
  465. long CPVTreeView::GetEditHWND()
  466. {
  467.     long result;
  468.     InvokeHelper(0x1c, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  469.     return result;
  470. }
  471.  
  472. void CPVTreeView::AboutBox()
  473. {
  474.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  475. }
  476.