home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / treevwx / tvx3demo.exe / data.1 / pvtreeview3.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-18  |  12.4 KB  |  612 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 "pvtreeview3.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "font.h"
  12. #include "pvibranch.h"
  13. #include "Picture.h"
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CPVTreeView3
  17.  
  18. IMPLEMENT_DYNCREATE(CPVTreeView3, CWnd)
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CPVTreeView3 properties
  22.  
  23. OLE_COLOR CPVTreeView3::GetBackColor()
  24. {
  25.     OLE_COLOR result;
  26.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  27.     return result;
  28. }
  29.  
  30. void CPVTreeView3::SetBackColor(OLE_COLOR propVal)
  31. {
  32.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  33. }
  34.  
  35. BOOL CPVTreeView3::GetEnabled()
  36. {
  37.     BOOL result;
  38.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  39.     return result;
  40. }
  41.  
  42. void CPVTreeView3::SetEnabled(BOOL propVal)
  43. {
  44.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  45. }
  46.  
  47. COleFont CPVTreeView3::GetFont()
  48. {
  49.     LPDISPATCH pDispatch;
  50.     GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  51.     return COleFont(pDispatch);
  52. }
  53.  
  54. void CPVTreeView3::SetFont(LPDISPATCH propVal)
  55. {
  56.     SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  57. }
  58.  
  59. OLE_COLOR CPVTreeView3::GetForeColor()
  60. {
  61.     OLE_COLOR result;
  62.     GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
  63.     return result;
  64. }
  65.  
  66. void CPVTreeView3::SetForeColor(OLE_COLOR propVal)
  67. {
  68.     SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
  69. }
  70.  
  71. OLE_HANDLE CPVTreeView3::GetHWnd()
  72. {
  73.     OLE_HANDLE result;
  74.     GetProperty(DISPID_HWND, VT_I4, (void*)&result);
  75.     return result;
  76. }
  77.  
  78. void CPVTreeView3::SetHWnd(OLE_HANDLE propVal)
  79. {
  80.     SetProperty(DISPID_HWND, VT_I4, propVal);
  81. }
  82.  
  83. short CPVTreeView3::GetAppearance()
  84. {
  85.     short result;
  86.     GetProperty(DISPID_APPEARANCE, VT_I2, (void*)&result);
  87.     return result;
  88. }
  89.  
  90. void CPVTreeView3::SetAppearance(short propVal)
  91. {
  92.     SetProperty(DISPID_APPEARANCE, VT_I2, propVal);
  93. }
  94.  
  95. short CPVTreeView3::GetBorderStyle()
  96. {
  97.     short result;
  98.     GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  99.     return result;
  100. }
  101.  
  102. void CPVTreeView3::SetBorderStyle(short propVal)
  103. {
  104.     SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  105. }
  106.  
  107. long CPVTreeView3::GetSelectMode()
  108. {
  109.     long result;
  110.     GetProperty(0x1, VT_I4, (void*)&result);
  111.     return result;
  112. }
  113.  
  114. void CPVTreeView3::SetSelectMode(long propVal)
  115. {
  116.     SetProperty(0x1, VT_I4, propVal);
  117. }
  118.  
  119. BOOL CPVTreeView3::GetSort()
  120. {
  121.     BOOL result;
  122.     GetProperty(0x2, VT_BOOL, (void*)&result);
  123.     return result;
  124. }
  125.  
  126. void CPVTreeView3::SetSort(BOOL propVal)
  127. {
  128.     SetProperty(0x2, VT_BOOL, propVal);
  129. }
  130.  
  131. BOOL CPVTreeView3::GetUseTabStops()
  132. {
  133.     BOOL result;
  134.     GetProperty(0x3, VT_BOOL, (void*)&result);
  135.     return result;
  136. }
  137.  
  138. void CPVTreeView3::SetUseTabStops(BOOL propVal)
  139. {
  140.     SetProperty(0x3, VT_BOOL, propVal);
  141. }
  142.  
  143. BOOL CPVTreeView3::GetIntegralHeight()
  144. {
  145.     BOOL result;
  146.     GetProperty(0x4, VT_BOOL, (void*)&result);
  147.     return result;
  148. }
  149.  
  150. void CPVTreeView3::SetIntegralHeight(BOOL propVal)
  151. {
  152.     SetProperty(0x4, VT_BOOL, propVal);
  153. }
  154.  
  155. BOOL CPVTreeView3::GetMultiColumn()
  156. {
  157.     BOOL result;
  158.     GetProperty(0x5, VT_BOOL, (void*)&result);
  159.     return result;
  160. }
  161.  
  162. void CPVTreeView3::SetMultiColumn(BOOL propVal)
  163. {
  164.     SetProperty(0x5, VT_BOOL, propVal);
  165. }
  166.  
  167. BOOL CPVTreeView3::GetEnableMicroBitmaps()
  168. {
  169.     BOOL result;
  170.     GetProperty(0x6, VT_BOOL, (void*)&result);
  171.     return result;
  172. }
  173.  
  174. void CPVTreeView3::SetEnableMicroBitmaps(BOOL propVal)
  175. {
  176.     SetProperty(0x6, VT_BOOL, propVal);
  177. }
  178.  
  179. BOOL CPVTreeView3::GetEnableBitmaps()
  180. {
  181.     BOOL result;
  182.     GetProperty(0x7, VT_BOOL, (void*)&result);
  183.     return result;
  184. }
  185.  
  186. void CPVTreeView3::SetEnableBitmaps(BOOL propVal)
  187. {
  188.     SetProperty(0x7, VT_BOOL, propVal);
  189. }
  190.  
  191. BOOL CPVTreeView3::GetEnableLines()
  192. {
  193.     BOOL result;
  194.     GetProperty(0x8, VT_BOOL, (void*)&result);
  195.     return result;
  196. }
  197.  
  198. void CPVTreeView3::SetEnableLines(BOOL propVal)
  199. {
  200.     SetProperty(0x8, VT_BOOL, propVal);
  201. }
  202.  
  203. BOOL CPVTreeView3::GetAutoOpen()
  204. {
  205.     BOOL result;
  206.     GetProperty(0x9, VT_BOOL, (void*)&result);
  207.     return result;
  208. }
  209.  
  210. void CPVTreeView3::SetAutoOpen(BOOL propVal)
  211. {
  212.     SetProperty(0x9, VT_BOOL, propVal);
  213. }
  214.  
  215. short CPVTreeView3::GetHorizontalExtent()
  216. {
  217.     short result;
  218.     GetProperty(0xa, VT_I2, (void*)&result);
  219.     return result;
  220. }
  221.  
  222. void CPVTreeView3::SetHorizontalExtent(short propVal)
  223. {
  224.     SetProperty(0xa, VT_I2, propVal);
  225. }
  226.  
  227. BOOL CPVTreeView3::GetProportionalScrollBars()
  228. {
  229.     BOOL result;
  230.     GetProperty(0xb, VT_BOOL, (void*)&result);
  231.     return result;
  232. }
  233.  
  234. void CPVTreeView3::SetProportionalScrollBars(BOOL propVal)
  235. {
  236.     SetProperty(0xb, VT_BOOL, propVal);
  237. }
  238.  
  239. BOOL CPVTreeView3::GetAlwaysShowSelection()
  240. {
  241.     BOOL result;
  242.     GetProperty(0xc, VT_BOOL, (void*)&result);
  243.     return result;
  244. }
  245.  
  246. void CPVTreeView3::SetAlwaysShowSelection(BOOL propVal)
  247. {
  248.     SetProperty(0xc, VT_BOOL, propVal);
  249. }
  250.  
  251. long CPVTreeView3::GetMultiColumnStyle()
  252. {
  253.     long result;
  254.     GetProperty(0xd, VT_I4, (void*)&result);
  255.     return result;
  256. }
  257.  
  258. void CPVTreeView3::SetMultiColumnStyle(long propVal)
  259. {
  260.     SetProperty(0xd, VT_I4, propVal);
  261. }
  262.  
  263. short CPVTreeView3::GetColumnWidth()
  264. {
  265.     short result;
  266.     GetProperty(0xe, VT_I2, (void*)&result);
  267.     return result;
  268. }
  269.  
  270. void CPVTreeView3::SetColumnWidth(short propVal)
  271. {
  272.     SetProperty(0xe, VT_I2, propVal);
  273. }
  274.  
  275. short CPVTreeView3::GetNumberOfColumns()
  276. {
  277.     short result;
  278.     GetProperty(0xf, VT_I2, (void*)&result);
  279.     return result;
  280. }
  281.  
  282. void CPVTreeView3::SetNumberOfColumns(short propVal)
  283. {
  284.     SetProperty(0xf, VT_I2, propVal);
  285. }
  286.  
  287. BOOL CPVTreeView3::GetUseStateBitmaps()
  288. {
  289.     BOOL result;
  290.     GetProperty(0x10, VT_BOOL, (void*)&result);
  291.     return result;
  292. }
  293.  
  294. void CPVTreeView3::SetUseStateBitmaps(BOOL propVal)
  295. {
  296.     SetProperty(0x10, VT_BOOL, propVal);
  297. }
  298.  
  299. long CPVTreeView3::GetStandardDefaultPicture()
  300. {
  301.     long result;
  302.     GetProperty(0x11, VT_I4, (void*)&result);
  303.     return result;
  304. }
  305.  
  306. void CPVTreeView3::SetStandardDefaultPicture(long propVal)
  307. {
  308.     SetProperty(0x11, VT_I4, propVal);
  309. }
  310.  
  311. short CPVTreeView3::GetIndent()
  312. {
  313.     short result;
  314.     GetProperty(0x12, VT_I2, (void*)&result);
  315.     return result;
  316. }
  317.  
  318. void CPVTreeView3::SetIndent(short propVal)
  319. {
  320.     SetProperty(0x12, VT_I2, propVal);
  321. }
  322.  
  323. BOOL CPVTreeView3::GetAllowInPlaceEditing()
  324. {
  325.     BOOL result;
  326.     GetProperty(0x13, VT_BOOL, (void*)&result);
  327.     return result;
  328. }
  329.  
  330. void CPVTreeView3::SetAllowInPlaceEditing(BOOL propVal)
  331. {
  332.     SetProperty(0x13, VT_BOOL, propVal);
  333. }
  334.  
  335. BOOL CPVTreeView3::GetEnableToolTips()
  336. {
  337.     BOOL result;
  338.     GetProperty(0x14, VT_BOOL, (void*)&result);
  339.     return result;
  340. }
  341.  
  342. void CPVTreeView3::SetEnableToolTips(BOOL propVal)
  343. {
  344.     SetProperty(0x14, VT_BOOL, propVal);
  345. }
  346.  
  347. unsigned long CPVTreeView3::GetToolTipBackColor()
  348. {
  349.     unsigned long result;
  350.     GetProperty(0x15, VT_I4, (void*)&result);
  351.     return result;
  352. }
  353.  
  354. void CPVTreeView3::SetToolTipBackColor(unsigned long propVal)
  355. {
  356.     SetProperty(0x15, VT_I4, propVal);
  357. }
  358.  
  359. unsigned long CPVTreeView3::GetSelectedTextBackColor()
  360. {
  361.     unsigned long result;
  362.     GetProperty(0x16, VT_I4, (void*)&result);
  363.     return result;
  364. }
  365.  
  366. void CPVTreeView3::SetSelectedTextBackColor(unsigned long propVal)
  367. {
  368.     SetProperty(0x16, VT_I4, propVal);
  369. }
  370.  
  371. unsigned long CPVTreeView3::GetSelectedTextForeColor()
  372. {
  373.     unsigned long result;
  374.     GetProperty(0x17, VT_I4, (void*)&result);
  375.     return result;
  376. }
  377.  
  378. void CPVTreeView3::SetSelectedTextForeColor(unsigned long propVal)
  379. {
  380.     SetProperty(0x17, VT_I4, propVal);
  381. }
  382.  
  383. unsigned long CPVTreeView3::GetLineColor()
  384. {
  385.     unsigned long result;
  386.     GetProperty(0x18, VT_I4, (void*)&result);
  387.     return result;
  388. }
  389.  
  390. void CPVTreeView3::SetLineColor(unsigned long propVal)
  391. {
  392.     SetProperty(0x18, VT_I4, propVal);
  393. }
  394.  
  395. BOOL CPVTreeView3::GetRedraw()
  396. {
  397.     BOOL result;
  398.     GetProperty(0x19, VT_BOOL, (void*)&result);
  399.     return result;
  400. }
  401.  
  402. void CPVTreeView3::SetRedraw(BOOL propVal)
  403. {
  404.     SetProperty(0x19, VT_BOOL, propVal);
  405. }
  406.  
  407. CPVIBranch CPVTreeView3::GetBranches()
  408. {
  409.     LPDISPATCH pDispatch;
  410.     GetProperty(0x1a, VT_DISPATCH, (void*)&pDispatch);
  411.     return CPVIBranch(pDispatch);
  412. }
  413.  
  414. void CPVTreeView3::SetBranches(LPDISPATCH propVal)
  415. {
  416.     SetProperty(0x1a, VT_DISPATCH, propVal);
  417. }
  418.  
  419. short CPVTreeView3::GetTabPointCount()
  420. {
  421.     short result;
  422.     GetProperty(0x1b, VT_I2, (void*)&result);
  423.     return result;
  424. }
  425.  
  426. void CPVTreeView3::SetTabPointCount(short propVal)
  427. {
  428.     SetProperty(0x1b, VT_I2, propVal);
  429. }
  430.  
  431. long CPVTreeView3::GetCount()
  432. {
  433.     long result;
  434.     GetProperty(0x1c, VT_I4, (void*)&result);
  435.     return result;
  436. }
  437.  
  438. void CPVTreeView3::SetCount(long propVal)
  439. {
  440.     SetProperty(0x1c, VT_I4, propVal);
  441. }
  442.  
  443. long CPVTreeView3::GetVisibleCount()
  444. {
  445.     long result;
  446.     GetProperty(0x1d, VT_I4, (void*)&result);
  447.     return result;
  448. }
  449.  
  450. void CPVTreeView3::SetVisibleCount(long propVal)
  451. {
  452.     SetProperty(0x1d, VT_I4, propVal);
  453. }
  454.  
  455. CPicture CPVTreeView3::GetCustomDefaultPicture()
  456. {
  457.     LPDISPATCH pDispatch;
  458.     GetProperty(0x1e, VT_DISPATCH, (void*)&pDispatch);
  459.     return CPicture(pDispatch);
  460. }
  461.  
  462. void CPVTreeView3::SetCustomDefaultPicture(LPDISPATCH propVal)
  463. {
  464.     SetProperty(0x1e, VT_DISPATCH, propVal);
  465. }
  466.  
  467. LPUNKNOWN CPVTreeView3::GetDataSource()
  468. {
  469.     LPUNKNOWN result;
  470.     GetProperty(0x1f, VT_UNKNOWN, (void*)&result);
  471.     return result;
  472. }
  473.  
  474. void CPVTreeView3::SetDataSource(LPUNKNOWN propVal)
  475. {
  476.     SetProperty(0x1f, VT_UNKNOWN, propVal);
  477. }
  478.  
  479. CString CPVTreeView3::GetDataMember()
  480. {
  481.     CString result;
  482.     GetProperty(0x21, VT_BSTR, (void*)&result);
  483.     return result;
  484. }
  485.  
  486. void CPVTreeView3::SetDataMember(LPCTSTR propVal)
  487. {
  488.     SetProperty(0x21, VT_BSTR, propVal);
  489. }
  490.  
  491. /////////////////////////////////////////////////////////////////////////////
  492. // CPVTreeView3 operations
  493.  
  494. void CPVTreeView3::ClearTabStops()
  495. {
  496.     InvokeHelper(0xc8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  497. }
  498.  
  499. CPVIBranch CPVTreeView3::Find(long relationship, LPDISPATCH relative, LPCTSTR Text)
  500. {
  501.     LPDISPATCH pDispatch;
  502.     static BYTE parms[] =
  503.         VTS_I4 VTS_DISPATCH VTS_BSTR;
  504.     InvokeHelper(0xc9, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  505.         relationship, relative, Text);
  506.     return CPVIBranch(pDispatch);
  507. }
  508.  
  509. void CPVTreeView3::BeginInPlaceEdit()
  510. {
  511.     InvokeHelper(0xca, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  512. }
  513.  
  514. void CPVTreeView3::EndInPlaceEdit()
  515. {
  516.     InvokeHelper(0xcb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  517. }
  518.  
  519. long CPVTreeView3::GetEditHWND()
  520. {
  521.     long result;
  522.     InvokeHelper(0xcc, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  523.     return result;
  524. }
  525.  
  526. CPVIBranch CPVTreeView3::HitTest(long x, long y)
  527. {
  528.     LPDISPATCH pDispatch;
  529.     static BYTE parms[] =
  530.         VTS_I4 VTS_I4;
  531.     InvokeHelper(0xcd, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  532.         x, y);
  533.     return CPVIBranch(pDispatch);
  534. }
  535.  
  536. short CPVTreeView3::GetTabPoint(short index)
  537. {
  538.     short result;
  539.     static BYTE parms[] =
  540.         VTS_I2;
  541.     InvokeHelper(0xce, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  542.         index);
  543.     return result;
  544. }
  545.  
  546. void CPVTreeView3::SetTabPoint(short index, short nNewValue)
  547. {
  548.     static BYTE parms[] =
  549.         VTS_I2 VTS_I2;
  550.     InvokeHelper(0xce, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  551.          index, nNewValue);
  552. }
  553.  
  554. long CPVTreeView3::GetStandardLevelPicture(short Level)
  555. {
  556.     long result;
  557.     static BYTE parms[] =
  558.         VTS_I2;
  559.     InvokeHelper(0xcf, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  560.         Level);
  561.     return result;
  562. }
  563.  
  564. void CPVTreeView3::SetStandardLevelPicture(short Level, long nNewValue)
  565. {
  566.     static BYTE parms[] =
  567.         VTS_I2 VTS_I4;
  568.     InvokeHelper(0xcf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  569.          Level, nNewValue);
  570. }
  571.  
  572. CPicture CPVTreeView3::GetCustomLevelPicture(short Level)
  573. {
  574.     LPDISPATCH pDispatch;
  575.     static BYTE parms[] =
  576.         VTS_I2;
  577.     InvokeHelper(0xd0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, parms,
  578.         Level);
  579.     return CPicture(pDispatch);
  580. }
  581.  
  582. void CPVTreeView3::SetRefCustomLevelPicture(short Level, LPDISPATCH newValue)
  583. {
  584.     static BYTE parms[] =
  585.         VTS_I2 VTS_DISPATCH;
  586.     InvokeHelper(0xd0, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  587.          Level, newValue);
  588. }
  589.  
  590. CString CPVTreeView3::GetDataField(long nIndex)
  591. {
  592.     CString result;
  593.     static BYTE parms[] =
  594.         VTS_I4;
  595.     InvokeHelper(0xd1, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  596.         nIndex);
  597.     return result;
  598. }
  599.  
  600. void CPVTreeView3::SetDataField(long nIndex, LPCTSTR lpszNewValue)
  601. {
  602.     static BYTE parms[] =
  603.         VTS_I4 VTS_BSTR;
  604.     InvokeHelper(0xd1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  605.          nIndex, lpszNewValue);
  606. }
  607.  
  608. void CPVTreeView3::AboutBox()
  609. {
  610.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  611. }
  612.