home *** CD-ROM | disk | FTP | other *** search
/ PC Users 1998 March / Pc Users extra 6.iso / pshare95 / prog / pvie / pview.exe / data.1 / pvtreeview.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-16  |  11.6 KB  |  582 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(0x1a, VT_DISPATCH, (void*)&pDispatch);
  219.     return CBranch(pDispatch);
  220. }
  221.  
  222. void CPVTreeView::SetBranches(LPDISPATCH propVal)
  223. {
  224.     SetProperty(0x1a, 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(0x1b, VT_I2, (void*)&result);
  303.     return result;
  304. }
  305.  
  306. void CPVTreeView::SetTabPointCount(short propVal)
  307. {
  308.     SetProperty(0x1b, VT_I2, propVal);
  309. }
  310.  
  311. long CPVTreeView::GetCount()
  312. {
  313.     long result;
  314.     GetProperty(0x1c, VT_I4, (void*)&result);
  315.     return result;
  316. }
  317.  
  318. void CPVTreeView::SetCount(long propVal)
  319. {
  320.     SetProperty(0x1c, VT_I4, propVal);
  321. }
  322.  
  323. long CPVTreeView::GetVisibleCount()
  324. {
  325.     long result;
  326.     GetProperty(0x1d, VT_I4, (void*)&result);
  327.     return result;
  328. }
  329.  
  330. void CPVTreeView::SetVisibleCount(long propVal)
  331. {
  332.     SetProperty(0x1d, 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(0x1e, VT_DISPATCH, (void*)&pDispatch);
  351.     return CPicture(pDispatch);
  352. }
  353.  
  354. void CPVTreeView::SetCustomDefaultPicture(LPDISPATCH propVal)
  355. {
  356.     SetProperty(0x1e, 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. BOOL CPVTreeView::GetAllowInPlaceEditing()
  384. {
  385.     BOOL result;
  386.     GetProperty(0x13, VT_BOOL, (void*)&result);
  387.     return result;
  388. }
  389.  
  390. void CPVTreeView::SetAllowInPlaceEditing(BOOL propVal)
  391. {
  392.     SetProperty(0x13, VT_BOOL, propVal);
  393. }
  394.  
  395. BOOL CPVTreeView::GetEnableToolTips()
  396. {
  397.     BOOL result;
  398.     GetProperty(0x14, VT_BOOL, (void*)&result);
  399.     return result;
  400. }
  401.  
  402. void CPVTreeView::SetEnableToolTips(BOOL propVal)
  403. {
  404.     SetProperty(0x14, VT_BOOL, propVal);
  405. }
  406.  
  407. unsigned long CPVTreeView::GetToolTipBackColor()
  408. {
  409.     unsigned long result;
  410.     GetProperty(0x15, VT_I4, (void*)&result);
  411.     return result;
  412. }
  413.  
  414. void CPVTreeView::SetToolTipBackColor(unsigned long propVal)
  415. {
  416.     SetProperty(0x15, VT_I4, propVal);
  417. }
  418.  
  419. unsigned long CPVTreeView::GetSelectedTextBackColor()
  420. {
  421.     unsigned long result;
  422.     GetProperty(0x16, VT_I4, (void*)&result);
  423.     return result;
  424. }
  425.  
  426. void CPVTreeView::SetSelectedTextBackColor(unsigned long propVal)
  427. {
  428.     SetProperty(0x16, VT_I4, propVal);
  429. }
  430.  
  431. unsigned long CPVTreeView::GetSelectedTextForeColor()
  432. {
  433.     unsigned long result;
  434.     GetProperty(0x17, VT_I4, (void*)&result);
  435.     return result;
  436. }
  437.  
  438. void CPVTreeView::SetSelectedTextForeColor(unsigned long propVal)
  439. {
  440.     SetProperty(0x17, VT_I4, propVal);
  441. }
  442.  
  443. unsigned long CPVTreeView::GetLineColor()
  444. {
  445.     unsigned long result;
  446.     GetProperty(0x18, VT_I4, (void*)&result);
  447.     return result;
  448. }
  449.  
  450. void CPVTreeView::SetLineColor(unsigned long propVal)
  451. {
  452.     SetProperty(0x18, VT_I4, propVal);
  453. }
  454.  
  455. CString CPVTreeView::GetListField()
  456. {
  457.     CString result;
  458.     GetProperty(0x19, VT_BSTR, (void*)&result);
  459.     return result;
  460. }
  461.  
  462. void CPVTreeView::SetListField(LPCTSTR propVal)
  463. {
  464.     SetProperty(0x19, VT_BSTR, propVal);
  465. }
  466.  
  467. CString CPVTreeView::GetBoundText()
  468. {
  469.     CString result;
  470.     GetProperty(0x20, VT_BSTR, (void*)&result);
  471.     return result;
  472. }
  473.  
  474. void CPVTreeView::SetBoundText(LPCTSTR propVal)
  475. {
  476.     SetProperty(0x20, VT_BSTR, propVal);
  477. }
  478.  
  479. /////////////////////////////////////////////////////////////////////////////
  480. // CPVTreeView operations
  481.  
  482. short CPVTreeView::GetTabPoint(short index)
  483. {
  484.     short result;
  485.     static BYTE parms[] =
  486.         VTS_I2;
  487.     InvokeHelper(0x27, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  488.         index);
  489.     return result;
  490. }
  491.  
  492. void CPVTreeView::SetTabPoint(short index, short nNewValue)
  493. {
  494.     static BYTE parms[] =
  495.         VTS_I2 VTS_I2;
  496.     InvokeHelper(0x27, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  497.          index, nNewValue);
  498. }
  499.  
  500. void CPVTreeView::ClearTabStops()
  501. {
  502.     InvokeHelper(0x21, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  503. }
  504.  
  505. short CPVTreeView::GetStandardLevelPicture(short Level)
  506. {
  507.     short result;
  508.     static BYTE parms[] =
  509.         VTS_I2;
  510.     InvokeHelper(0x28, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  511.         Level);
  512.     return result;
  513. }
  514.  
  515. void CPVTreeView::SetStandardLevelPicture(short Level, short nNewValue)
  516. {
  517.     static BYTE parms[] =
  518.         VTS_I2 VTS_I2;
  519.     InvokeHelper(0x28, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  520.          Level, nNewValue);
  521. }
  522.  
  523. CPicture CPVTreeView::GetCustomLevelPicture(short Level)
  524. {
  525.     LPDISPATCH pDispatch;
  526.     static BYTE parms[] =
  527.         VTS_I2;
  528.     InvokeHelper(0x29, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, parms,
  529.         Level);
  530.     return CPicture(pDispatch);
  531. }
  532.  
  533. void CPVTreeView::SetCustomLevelPicture(short Level, LPDISPATCH newValue)
  534. {
  535.     static BYTE parms[] =
  536.         VTS_I2 VTS_DISPATCH;
  537.     InvokeHelper(0x29, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  538.          Level, newValue);
  539. }
  540.  
  541. CBranch CPVTreeView::Find(short relationship, LPDISPATCH relative, LPCTSTR Text)
  542. {
  543.     LPDISPATCH pDispatch;
  544.     static BYTE parms[] =
  545.         VTS_I2 VTS_DISPATCH VTS_BSTR;
  546.     InvokeHelper(0x22, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  547.         relationship, relative, Text);
  548.     return CBranch(pDispatch);
  549. }
  550.  
  551. void CPVTreeView::BeginInPlaceEdit()
  552. {
  553.     InvokeHelper(0x23, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  554. }
  555.  
  556. void CPVTreeView::EndInPlaceEdit()
  557. {
  558.     InvokeHelper(0x24, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  559. }
  560.  
  561. long CPVTreeView::GetEditHWND()
  562. {
  563.     long result;
  564.     InvokeHelper(0x25, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  565.     return result;
  566. }
  567.  
  568. CBranch CPVTreeView::HitTest(long x, long y)
  569. {
  570.     LPDISPATCH pDispatch;
  571.     static BYTE parms[] =
  572.         VTS_I4 VTS_I4;
  573.     InvokeHelper(0x26, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  574.         x, y);
  575.     return CBranch(pDispatch);
  576. }
  577.  
  578. void CPVTreeView::AboutBox()
  579. {
  580.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  581. }
  582.