home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / LEAD.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-10  |  34.5 KB  |  1,791 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 "lead.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "Picture.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CLead
  15.  
  16. IMPLEMENT_DYNCREATE(CLead, CWnd)
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CLead properties
  20.  
  21. OLE_HANDLE CLead::GetHWnd()
  22. {
  23.     OLE_HANDLE result;
  24.     GetProperty(DISPID_HWND, VT_I2, (void*)&result);
  25.     return result;
  26. }
  27.  
  28. void CLead::SetHWnd(OLE_HANDLE propVal)
  29. {
  30.     SetProperty(DISPID_HWND, VT_I2, propVal);
  31. }
  32.  
  33. OLE_COLOR CLead::GetBackColor()
  34. {
  35.     OLE_COLOR result;
  36.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  37.     return result;
  38. }
  39.  
  40. void CLead::SetBackColor(OLE_COLOR propVal)
  41. {
  42.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  43. }
  44.  
  45. BOOL CLead::GetEnabled()
  46. {
  47.     BOOL result;
  48.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  49.     return result;
  50. }
  51.  
  52. void CLead::SetEnabled(BOOL propVal)
  53. {
  54.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  55. }
  56.  
  57. short CLead::GetBorderStyle()
  58. {
  59.     short result;
  60.     GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  61.     return result;
  62. }
  63.  
  64. void CLead::SetBorderStyle(short propVal)
  65. {
  66.     SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  67. }
  68.  
  69. long CLead::Get_Bitmap()
  70. {
  71.     long result;
  72.     GetProperty(0x0, VT_I4, (void*)&result);
  73.     return result;
  74. }
  75.  
  76. void CLead::Set_Bitmap(long propVal)
  77. {
  78.     SetProperty(0x0, VT_I4, propVal);
  79. }
  80.  
  81. long CLead::GetBitmap()
  82. {
  83.     long result;
  84.     GetProperty(0x1, VT_I4, (void*)&result);
  85.     return result;
  86. }
  87.  
  88. void CLead::SetBitmap(long propVal)
  89. {
  90.     SetProperty(0x1, VT_I4, propVal);
  91. }
  92.  
  93. BOOL CLead::GetAutoRepaint()
  94. {
  95.     BOOL result;
  96.     GetProperty(0x2, VT_BOOL, (void*)&result);
  97.     return result;
  98. }
  99.  
  100. void CLead::SetAutoRepaint(BOOL propVal)
  101. {
  102.     SetProperty(0x2, VT_BOOL, propVal);
  103. }
  104.  
  105. short CLead::GetPaintEffect()
  106. {
  107.     short result;
  108.     GetProperty(0x3, VT_I2, (void*)&result);
  109.     return result;
  110. }
  111.  
  112. void CLead::SetPaintEffect(short propVal)
  113. {
  114.     SetProperty(0x3, VT_I2, propVal);
  115. }
  116.  
  117. BOOL CLead::GetBackErase()
  118. {
  119.     BOOL result;
  120.     GetProperty(0x4, VT_BOOL, (void*)&result);
  121.     return result;
  122. }
  123.  
  124. void CLead::SetBackErase(BOOL propVal)
  125. {
  126.     SetProperty(0x4, VT_BOOL, propVal);
  127. }
  128.  
  129. BOOL CLead::GetAutoScroll()
  130. {
  131.     BOOL result;
  132.     GetProperty(0x5, VT_BOOL, (void*)&result);
  133.     return result;
  134. }
  135.  
  136. void CLead::SetAutoScroll(BOOL propVal)
  137. {
  138.     SetProperty(0x5, VT_BOOL, propVal);
  139. }
  140.  
  141. short CLead::GetPaintDither()
  142. {
  143.     short result;
  144.     GetProperty(0x6, VT_I2, (void*)&result);
  145.     return result;
  146. }
  147.  
  148. void CLead::SetPaintDither(short propVal)
  149. {
  150.     SetProperty(0x6, VT_I2, propVal);
  151. }
  152.  
  153. BOOL CLead::GetEnableProgressEvent()
  154. {
  155.     BOOL result;
  156.     GetProperty(0x7, VT_BOOL, (void*)&result);
  157.     return result;
  158. }
  159.  
  160. void CLead::SetEnableProgressEvent(BOOL propVal)
  161. {
  162.     SetProperty(0x7, VT_BOOL, propVal);
  163. }
  164.  
  165. short CLead::GetBitonalScaling()
  166. {
  167.     short result;
  168.     GetProperty(0x8, VT_I2, (void*)&result);
  169.     return result;
  170. }
  171.  
  172. void CLead::SetBitonalScaling(short propVal)
  173. {
  174.     SetProperty(0x8, VT_I2, propVal);
  175. }
  176.  
  177. BOOL CLead::GetPaintWhileLoad()
  178. {
  179.     BOOL result;
  180.     GetProperty(0x9, VT_BOOL, (void*)&result);
  181.     return result;
  182. }
  183.  
  184. void CLead::SetPaintWhileLoad(BOOL propVal)
  185. {
  186.     SetProperty(0x9, VT_BOOL, propVal);
  187. }
  188.  
  189. float CLead::GetBitmapWidth()
  190. {
  191.     float result;
  192.     GetProperty(0xa, VT_R4, (void*)&result);
  193.     return result;
  194. }
  195.  
  196. void CLead::SetBitmapWidth(float propVal)
  197. {
  198.     SetProperty(0xa, VT_R4, propVal);
  199. }
  200.  
  201. float CLead::GetBitmapHeight()
  202. {
  203.     float result;
  204.     GetProperty(0xb, VT_R4, (void*)&result);
  205.     return result;
  206. }
  207.  
  208. void CLead::SetBitmapHeight(float propVal)
  209. {
  210.     SetProperty(0xb, VT_R4, propVal);
  211. }
  212.  
  213. short CLead::GetBitmapBits()
  214. {
  215.     short result;
  216.     GetProperty(0xc, VT_I2, (void*)&result);
  217.     return result;
  218. }
  219.  
  220. void CLead::SetBitmapBits(short propVal)
  221. {
  222.     SetProperty(0xc, VT_I2, propVal);
  223. }
  224.  
  225. short CLead::GetVersionLevel()
  226. {
  227.     short result;
  228.     GetProperty(0xd, VT_I2, (void*)&result);
  229.     return result;
  230. }
  231.  
  232. void CLead::SetVersionLevel(short propVal)
  233. {
  234.     SetProperty(0xd, VT_I2, propVal);
  235. }
  236.  
  237. short CLead::GetVersionMajor()
  238. {
  239.     short result;
  240.     GetProperty(0xe, VT_I2, (void*)&result);
  241.     return result;
  242. }
  243.  
  244. void CLead::SetVersionMajor(short propVal)
  245. {
  246.     SetProperty(0xe, VT_I2, propVal);
  247. }
  248.  
  249. short CLead::GetVersionMinor()
  250. {
  251.     short result;
  252.     GetProperty(0xf, VT_I2, (void*)&result);
  253.     return result;
  254. }
  255.  
  256. void CLead::SetVersionMinor(short propVal)
  257. {
  258.     SetProperty(0xf, VT_I2, propVal);
  259. }
  260.  
  261. CString CLead::GetVersionProduct()
  262. {
  263.     CString result;
  264.     GetProperty(0x10, VT_BSTR, (void*)&result);
  265.     return result;
  266. }
  267.  
  268. void CLead::SetVersionProduct(LPCTSTR propVal)
  269. {
  270.     SetProperty(0x10, VT_BSTR, propVal);
  271. }
  272.  
  273. CString CLead::GetVersionDate()
  274. {
  275.     CString result;
  276.     GetProperty(0x11, VT_BSTR, (void*)&result);
  277.     return result;
  278. }
  279.  
  280. void CLead::SetVersionDate(LPCTSTR propVal)
  281. {
  282.     SetProperty(0x11, VT_BSTR, propVal);
  283. }
  284.  
  285. CString CLead::GetVersionTime()
  286. {
  287.     CString result;
  288.     GetProperty(0x12, VT_BSTR, (void*)&result);
  289.     return result;
  290. }
  291.  
  292. void CLead::SetVersionTime(LPCTSTR propVal)
  293. {
  294.     SetProperty(0x12, VT_BSTR, propVal);
  295. }
  296.  
  297. short CLead::GetPaintPalette()
  298. {
  299.     short result;
  300.     GetProperty(0x13, VT_I2, (void*)&result);
  301.     return result;
  302. }
  303.  
  304. void CLead::SetPaintPalette(short propVal)
  305. {
  306.     SetProperty(0x13, VT_I2, propVal);
  307. }
  308.  
  309. BOOL CLead::GetEnableMethodErrors()
  310. {
  311.     BOOL result;
  312.     GetProperty(0x14, VT_BOOL, (void*)&result);
  313.     return result;
  314. }
  315.  
  316. void CLead::SetEnableMethodErrors(BOOL propVal)
  317. {
  318.     SetProperty(0x14, VT_BOOL, propVal);
  319. }
  320.  
  321. float CLead::GetDstLeft()
  322. {
  323.     float result;
  324.     GetProperty(0x15, VT_R4, (void*)&result);
  325.     return result;
  326. }
  327.  
  328. void CLead::SetDstLeft(float propVal)
  329. {
  330.     SetProperty(0x15, VT_R4, propVal);
  331. }
  332.  
  333. float CLead::GetDstTop()
  334. {
  335.     float result;
  336.     GetProperty(0x16, VT_R4, (void*)&result);
  337.     return result;
  338. }
  339.  
  340. void CLead::SetDstTop(float propVal)
  341. {
  342.     SetProperty(0x16, VT_R4, propVal);
  343. }
  344.  
  345. float CLead::GetDstWidth()
  346. {
  347.     float result;
  348.     GetProperty(0x17, VT_R4, (void*)&result);
  349.     return result;
  350. }
  351.  
  352. void CLead::SetDstWidth(float propVal)
  353. {
  354.     SetProperty(0x17, VT_R4, propVal);
  355. }
  356.  
  357. float CLead::GetDstHeight()
  358. {
  359.     float result;
  360.     GetProperty(0x18, VT_R4, (void*)&result);
  361.     return result;
  362. }
  363.  
  364. void CLead::SetDstHeight(float propVal)
  365. {
  366.     SetProperty(0x18, VT_R4, propVal);
  367. }
  368.  
  369. float CLead::GetDstClipLeft()
  370. {
  371.     float result;
  372.     GetProperty(0x19, VT_R4, (void*)&result);
  373.     return result;
  374. }
  375.  
  376. void CLead::SetDstClipLeft(float propVal)
  377. {
  378.     SetProperty(0x19, VT_R4, propVal);
  379. }
  380.  
  381. float CLead::GetDstClipTop()
  382. {
  383.     float result;
  384.     GetProperty(0x1a, VT_R4, (void*)&result);
  385.     return result;
  386. }
  387.  
  388. void CLead::SetDstClipTop(float propVal)
  389. {
  390.     SetProperty(0x1a, VT_R4, propVal);
  391. }
  392.  
  393. float CLead::GetDstClipWidth()
  394. {
  395.     float result;
  396.     GetProperty(0x1b, VT_R4, (void*)&result);
  397.     return result;
  398. }
  399.  
  400. void CLead::SetDstClipWidth(float propVal)
  401. {
  402.     SetProperty(0x1b, VT_R4, propVal);
  403. }
  404.  
  405. float CLead::GetDstClipHeight()
  406. {
  407.     float result;
  408.     GetProperty(0x1c, VT_R4, (void*)&result);
  409.     return result;
  410. }
  411.  
  412. void CLead::SetDstClipHeight(float propVal)
  413. {
  414.     SetProperty(0x1c, VT_R4, propVal);
  415. }
  416.  
  417. float CLead::GetSrcLeft()
  418. {
  419.     float result;
  420.     GetProperty(0x1d, VT_R4, (void*)&result);
  421.     return result;
  422. }
  423.  
  424. void CLead::SetSrcLeft(float propVal)
  425. {
  426.     SetProperty(0x1d, VT_R4, propVal);
  427. }
  428.  
  429. float CLead::GetSrcTop()
  430. {
  431.     float result;
  432.     GetProperty(0x1e, VT_R4, (void*)&result);
  433.     return result;
  434. }
  435.  
  436. void CLead::SetSrcTop(float propVal)
  437. {
  438.     SetProperty(0x1e, VT_R4, propVal);
  439. }
  440.  
  441. float CLead::GetSrcWidth()
  442. {
  443.     float result;
  444.     GetProperty(0x1f, VT_R4, (void*)&result);
  445.     return result;
  446. }
  447.  
  448. void CLead::SetSrcWidth(float propVal)
  449. {
  450.     SetProperty(0x1f, VT_R4, propVal);
  451. }
  452.  
  453. float CLead::GetSrcHeight()
  454. {
  455.     float result;
  456.     GetProperty(0x20, VT_R4, (void*)&result);
  457.     return result;
  458. }
  459.  
  460. void CLead::SetSrcHeight(float propVal)
  461. {
  462.     SetProperty(0x20, VT_R4, propVal);
  463. }
  464.  
  465. float CLead::GetSrcClipLeft()
  466. {
  467.     float result;
  468.     GetProperty(0x21, VT_R4, (void*)&result);
  469.     return result;
  470. }
  471.  
  472. void CLead::SetSrcClipLeft(float propVal)
  473. {
  474.     SetProperty(0x21, VT_R4, propVal);
  475. }
  476.  
  477. float CLead::GetSrcClipTop()
  478. {
  479.     float result;
  480.     GetProperty(0x22, VT_R4, (void*)&result);
  481.     return result;
  482. }
  483.  
  484. void CLead::SetSrcClipTop(float propVal)
  485. {
  486.     SetProperty(0x22, VT_R4, propVal);
  487. }
  488.  
  489. float CLead::GetSrcClipWidth()
  490. {
  491.     float result;
  492.     GetProperty(0x23, VT_R4, (void*)&result);
  493.     return result;
  494. }
  495.  
  496. void CLead::SetSrcClipWidth(float propVal)
  497. {
  498.     SetProperty(0x23, VT_R4, propVal);
  499. }
  500.  
  501. float CLead::GetSrcClipHeight()
  502. {
  503.     float result;
  504.     GetProperty(0x24, VT_R4, (void*)&result);
  505.     return result;
  506. }
  507.  
  508. void CLead::SetSrcClipHeight(float propVal)
  509. {
  510.     SetProperty(0x24, VT_R4, propVal);
  511. }
  512.  
  513. short CLead::GetBitmapXRes()
  514. {
  515.     short result;
  516.     GetProperty(0x25, VT_I2, (void*)&result);
  517.     return result;
  518. }
  519.  
  520. void CLead::SetBitmapXRes(short propVal)
  521. {
  522.     SetProperty(0x25, VT_I2, propVal);
  523. }
  524.  
  525. short CLead::GetBitmapYRes()
  526. {
  527.     short result;
  528.     GetProperty(0x26, VT_I2, (void*)&result);
  529.     return result;
  530. }
  531.  
  532. void CLead::SetBitmapYRes(short propVal)
  533. {
  534.     SetProperty(0x26, VT_I2, propVal);
  535. }
  536.  
  537. short CLead::GetInfoPage()
  538. {
  539.     short result;
  540.     GetProperty(0x27, VT_I2, (void*)&result);
  541.     return result;
  542. }
  543.  
  544. void CLead::SetInfoPage(short propVal)
  545. {
  546.     SetProperty(0x27, VT_I2, propVal);
  547. }
  548.  
  549. float CLead::GetInfoWidth()
  550. {
  551.     float result;
  552.     GetProperty(0x28, VT_R4, (void*)&result);
  553.     return result;
  554. }
  555.  
  556. void CLead::SetInfoWidth(float propVal)
  557. {
  558.     SetProperty(0x28, VT_R4, propVal);
  559. }
  560.  
  561. float CLead::GetInfoHeight()
  562. {
  563.     float result;
  564.     GetProperty(0x29, VT_R4, (void*)&result);
  565.     return result;
  566. }
  567.  
  568. void CLead::SetInfoHeight(float propVal)
  569. {
  570.     SetProperty(0x29, VT_R4, propVal);
  571. }
  572.  
  573. short CLead::GetInfoBits()
  574. {
  575.     short result;
  576.     GetProperty(0x2a, VT_I2, (void*)&result);
  577.     return result;
  578. }
  579.  
  580. void CLead::SetInfoBits(short propVal)
  581. {
  582.     SetProperty(0x2a, VT_I2, propVal);
  583. }
  584.  
  585. short CLead::GetInfoFormat()
  586. {
  587.     short result;
  588.     GetProperty(0x2b, VT_I2, (void*)&result);
  589.     return result;
  590. }
  591.  
  592. void CLead::SetInfoFormat(short propVal)
  593. {
  594.     SetProperty(0x2b, VT_I2, propVal);
  595. }
  596.  
  597. long CLead::GetInfoSizeDisk()
  598. {
  599.     long result;
  600.     GetProperty(0x2c, VT_I4, (void*)&result);
  601.     return result;
  602. }
  603.  
  604. void CLead::SetInfoSizeDisk(long propVal)
  605. {
  606.     SetProperty(0x2c, VT_I4, propVal);
  607. }
  608.  
  609. long CLead::GetInfoSizeMem()
  610. {
  611.     long result;
  612.     GetProperty(0x2d, VT_I4, (void*)&result);
  613.     return result;
  614. }
  615.  
  616. void CLead::SetInfoSizeMem(long propVal)
  617. {
  618.     SetProperty(0x2d, VT_I4, propVal);
  619. }
  620.  
  621. CString CLead::GetInfoCompress()
  622. {
  623.     CString result;
  624.     GetProperty(0x2e, VT_BSTR, (void*)&result);
  625.     return result;
  626. }
  627.  
  628. void CLead::SetInfoCompress(LPCTSTR propVal)
  629. {
  630.     SetProperty(0x2e, VT_BSTR, propVal);
  631. }
  632.  
  633. BOOL CLead::GetEnableTwainEvent()
  634. {
  635.     BOOL result;
  636.     GetProperty(0x2f, VT_BOOL, (void*)&result);
  637.     return result;
  638. }
  639.  
  640. void CLead::SetEnableTwainEvent(BOOL propVal)
  641. {
  642.     SetProperty(0x2f, VT_BOOL, propVal);
  643. }
  644.  
  645. BOOL CLead::GetRubberBandVisible()
  646. {
  647.     BOOL result;
  648.     GetProperty(0x30, VT_BOOL, (void*)&result);
  649.     return result;
  650. }
  651.  
  652. void CLead::SetRubberBandVisible(BOOL propVal)
  653. {
  654.     SetProperty(0x30, VT_BOOL, propVal);
  655. }
  656.  
  657. float CLead::GetRubberBandLeft()
  658. {
  659.     float result;
  660.     GetProperty(0x31, VT_R4, (void*)&result);
  661.     return result;
  662. }
  663.  
  664. void CLead::SetRubberBandLeft(float propVal)
  665. {
  666.     SetProperty(0x31, VT_R4, propVal);
  667. }
  668.  
  669. float CLead::GetRubberBandTop()
  670. {
  671.     float result;
  672.     GetProperty(0x32, VT_R4, (void*)&result);
  673.     return result;
  674. }
  675.  
  676. void CLead::SetRubberBandTop(float propVal)
  677. {
  678.     SetProperty(0x32, VT_R4, propVal);
  679. }
  680.  
  681. float CLead::GetRubberBandWidth()
  682. {
  683.     float result;
  684.     GetProperty(0x33, VT_R4, (void*)&result);
  685.     return result;
  686. }
  687.  
  688. void CLead::SetRubberBandWidth(float propVal)
  689. {
  690.     SetProperty(0x33, VT_R4, propVal);
  691. }
  692.  
  693. float CLead::GetRubberBandHeight()
  694. {
  695.     float result;
  696.     GetProperty(0x34, VT_R4, (void*)&result);
  697.     return result;
  698. }
  699.  
  700. void CLead::SetRubberBandHeight(float propVal)
  701. {
  702.     SetProperty(0x34, VT_R4, propVal);
  703. }
  704.  
  705. short CLead::GetPCDRes()
  706. {
  707.     short result;
  708.     GetProperty(0x35, VT_I2, (void*)&result);
  709.     return result;
  710. }
  711.  
  712. void CLead::SetPCDRes(short propVal)
  713. {
  714.     SetProperty(0x35, VT_I2, propVal);
  715. }
  716.  
  717. short CLead::GetMousePointer()
  718. {
  719.     short result;
  720.     GetProperty(0x36, VT_I2, (void*)&result);
  721.     return result;
  722. }
  723.  
  724. void CLead::SetMousePointer(short propVal)
  725. {
  726.     SetProperty(0x36, VT_I2, propVal);
  727. }
  728.  
  729. CPicture CLead::GetMouseIcon()
  730. {
  731.     LPDISPATCH pDispatch;
  732.     GetProperty(0x37, VT_DISPATCH, (void*)&pDispatch);
  733.     return CPicture(pDispatch);
  734. }
  735.  
  736. void CLead::SetMouseIcon(LPDISPATCH propVal)
  737. {
  738.     SetProperty(0x37, VT_DISPATCH, propVal);
  739. }
  740.  
  741. short CLead::GetScaleMode()
  742. {
  743.     short result;
  744.     GetProperty(0x38, VT_I2, (void*)&result);
  745.     return result;
  746. }
  747.  
  748. void CLead::SetScaleMode(short propVal)
  749. {
  750.     SetProperty(0x38, VT_I2, propVal);
  751. }
  752.  
  753. BOOL CLead::GetAutoSetRects()
  754. {
  755.     BOOL result;
  756.     GetProperty(0x39, VT_BOOL, (void*)&result);
  757.     return result;
  758. }
  759.  
  760. void CLead::SetAutoSetRects(BOOL propVal)
  761. {
  762.     SetProperty(0x39, VT_BOOL, propVal);
  763. }
  764.  
  765. float CLead::GetScaleLeft()
  766. {
  767.     float result;
  768.     GetProperty(0x3a, VT_R4, (void*)&result);
  769.     return result;
  770. }
  771.  
  772. void CLead::SetScaleLeft(float propVal)
  773. {
  774.     SetProperty(0x3a, VT_R4, propVal);
  775. }
  776.  
  777. float CLead::GetScaleTop()
  778. {
  779.     float result;
  780.     GetProperty(0x3b, VT_R4, (void*)&result);
  781.     return result;
  782. }
  783.  
  784. void CLead::SetScaleTop(float propVal)
  785. {
  786.     SetProperty(0x3b, VT_R4, propVal);
  787. }
  788.  
  789. float CLead::GetScaleWidth()
  790. {
  791.     float result;
  792.     GetProperty(0x3c, VT_R4, (void*)&result);
  793.     return result;
  794. }
  795.  
  796. void CLead::SetScaleWidth(float propVal)
  797. {
  798.     SetProperty(0x3c, VT_R4, propVal);
  799. }
  800.  
  801. float CLead::GetScaleHeight()
  802. {
  803.     float result;
  804.     GetProperty(0x3d, VT_R4, (void*)&result);
  805.     return result;
  806. }
  807.  
  808. void CLead::SetScaleHeight(float propVal)
  809. {
  810.     SetProperty(0x3d, VT_R4, propVal);
  811. }
  812.  
  813. BOOL CLead::GetDbCanAppend()
  814. {
  815.     BOOL result;
  816.     GetProperty(0x3e, VT_BOOL, (void*)&result);
  817.     return result;
  818. }
  819.  
  820. void CLead::SetDbCanAppend(BOOL propVal)
  821. {
  822.     SetProperty(0x3e, VT_BOOL, propVal);
  823. }
  824.  
  825. BOOL CLead::GetDbCanRestart()
  826. {
  827.     BOOL result;
  828.     GetProperty(0x3f, VT_BOOL, (void*)&result);
  829.     return result;
  830. }
  831.  
  832. void CLead::SetDbCanRestart(BOOL propVal)
  833. {
  834.     SetProperty(0x3f, VT_BOOL, propVal);
  835. }
  836.  
  837. BOOL CLead::GetDbCanScroll()
  838. {
  839.     BOOL result;
  840.     GetProperty(0x40, VT_BOOL, (void*)&result);
  841.     return result;
  842. }
  843.  
  844. void CLead::SetDbCanScroll(BOOL propVal)
  845. {
  846.     SetProperty(0x40, VT_BOOL, propVal);
  847. }
  848.  
  849. BOOL CLead::GetDbCanUpdate()
  850. {
  851.     BOOL result;
  852.     GetProperty(0x41, VT_BOOL, (void*)&result);
  853.     return result;
  854. }
  855.  
  856. void CLead::SetDbCanUpdate(BOOL propVal)
  857. {
  858.     SetProperty(0x41, VT_BOOL, propVal);
  859. }
  860.  
  861. long CLead::GetDbRecordCount()
  862. {
  863.     long result;
  864.     GetProperty(0x42, VT_I4, (void*)&result);
  865.     return result;
  866. }
  867.  
  868. void CLead::SetDbRecordCount(long propVal)
  869. {
  870.     SetProperty(0x42, VT_I4, propVal);
  871. }
  872.  
  873. BOOL CLead::GetDbIsOpen()
  874. {
  875.     BOOL result;
  876.     GetProperty(0x43, VT_BOOL, (void*)&result);
  877.     return result;
  878. }
  879.  
  880. void CLead::SetDbIsOpen(BOOL propVal)
  881. {
  882.     SetProperty(0x43, VT_BOOL, propVal);
  883. }
  884.  
  885. BOOL CLead::GetDbIsBOF()
  886. {
  887.     BOOL result;
  888.     GetProperty(0x44, VT_BOOL, (void*)&result);
  889.     return result;
  890. }
  891.  
  892. void CLead::SetDbIsBOF(BOOL propVal)
  893. {
  894.     SetProperty(0x44, VT_BOOL, propVal);
  895. }
  896.  
  897. BOOL CLead::GetDbIsEOF()
  898. {
  899.     BOOL result;
  900.     GetProperty(0x45, VT_BOOL, (void*)&result);
  901.     return result;
  902. }
  903.  
  904. void CLead::SetDbIsEOF(BOOL propVal)
  905. {
  906.     SetProperty(0x45, VT_BOOL, propVal);
  907. }
  908.  
  909. BOOL CLead::GetDbIsDeleted()
  910. {
  911.     BOOL result;
  912.     GetProperty(0x46, VT_BOOL, (void*)&result);
  913.     return result;
  914. }
  915.  
  916. void CLead::SetDbIsDeleted(BOOL propVal)
  917. {
  918.     SetProperty(0x46, VT_BOOL, propVal);
  919. }
  920.  
  921. long CLead::GetDbCurrentRecord()
  922. {
  923.     long result;
  924.     GetProperty(0x47, VT_I4, (void*)&result);
  925.     return result;
  926. }
  927.  
  928. void CLead::SetDbCurrentRecord(long propVal)
  929. {
  930.     SetProperty(0x47, VT_I4, propVal);
  931. }
  932.  
  933. short CLead::GetDbEditMode()
  934. {
  935.     short result;
  936.     GetProperty(0x48, VT_I2, (void*)&result);
  937.     return result;
  938. }
  939.  
  940. void CLead::SetDbEditMode(short propVal)
  941. {
  942.     SetProperty(0x48, VT_I2, propVal);
  943. }
  944.  
  945. short CLead::GetDbLockingMode()
  946. {
  947.     short result;
  948.     GetProperty(0x49, VT_I2, (void*)&result);
  949.     return result;
  950. }
  951.  
  952. void CLead::SetDbLockingMode(short propVal)
  953. {
  954.     SetProperty(0x49, VT_I2, propVal);
  955. }
  956.  
  957. short CLead::GetDbLoadBits()
  958. {
  959.     short result;
  960.     GetProperty(0x4a, VT_I2, (void*)&result);
  961.     return result;
  962. }
  963.  
  964. void CLead::SetDbLoadBits(short propVal)
  965. {
  966.     SetProperty(0x4a, VT_I2, propVal);
  967. }
  968.  
  969. BOOL CLead::GetForePalette()
  970. {
  971.     BOOL result;
  972.     GetProperty(0x4b, VT_BOOL, (void*)&result);
  973.     return result;
  974. }
  975.  
  976. void CLead::SetForePalette(BOOL propVal)
  977. {
  978.     SetProperty(0x4b, VT_BOOL, propVal);
  979. }
  980.  
  981. /////////////////////////////////////////////////////////////////////////////
  982. // CLead operations
  983.  
  984. short CLead::Average(short iDim)
  985. {
  986.     short result;
  987.     static BYTE parms[] =
  988.         VTS_I2;
  989.     InvokeHelper(0x4c, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  990.         iDim);
  991.     return result;
  992. }
  993.  
  994. short CLead::Median(short iDim)
  995. {
  996.     short result;
  997.     static BYTE parms[] =
  998.         VTS_I2;
  999.     InvokeHelper(0x4d, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1000.         iDim);
  1001.     return result;
  1002. }
  1003.  
  1004. short CLead::Contrast(short iChange)
  1005. {
  1006.     short result;
  1007.     static BYTE parms[] =
  1008.         VTS_I2;
  1009.     InvokeHelper(0x4e, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1010.         iChange);
  1011.     return result;
  1012. }
  1013.  
  1014. short CLead::Despeckle()
  1015. {
  1016.     short result;
  1017.     InvokeHelper(0x4f, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1018.     return result;
  1019. }
  1020.  
  1021. short CLead::Flip()
  1022. {
  1023.     short result;
  1024.     InvokeHelper(0x50, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1025.     return result;
  1026. }
  1027.  
  1028. short CLead::Grayscale()
  1029. {
  1030.     short result;
  1031.     InvokeHelper(0x51, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1032.     return result;
  1033. }
  1034.  
  1035. short CLead::HistoEqualize()
  1036. {
  1037.     short result;
  1038.     InvokeHelper(0x52, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1039.     return result;
  1040. }
  1041.  
  1042. short CLead::Hue(short iAngle)
  1043. {
  1044.     short result;
  1045.     static BYTE parms[] =
  1046.         VTS_I2;
  1047.     InvokeHelper(0x53, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1048.         iAngle);
  1049.     return result;
  1050. }
  1051.  
  1052. short CLead::Intensity(short iChange)
  1053. {
  1054.     short result;
  1055.     static BYTE parms[] =
  1056.         VTS_I2;
  1057.     InvokeHelper(0x54, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1058.         iChange);
  1059.     return result;
  1060. }
  1061.  
  1062. short CLead::Invert()
  1063. {
  1064.     short result;
  1065.     InvokeHelper(0x55, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1066.     return result;
  1067. }
  1068.  
  1069. short CLead::TwainAcquire(long hWnd)
  1070. {
  1071.     short result;
  1072.     static BYTE parms[] =
  1073.         VTS_I4;
  1074.     InvokeHelper(0x56, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1075.         hWnd);
  1076.     return result;
  1077. }
  1078.  
  1079. short CLead::TwainSelect(long hWnd)
  1080. {
  1081.     short result;
  1082.     static BYTE parms[] =
  1083.         VTS_I4;
  1084.     InvokeHelper(0x57, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1085.         hWnd);
  1086.     return result;
  1087. }
  1088.  
  1089. short CLead::Sharpen(short iChange)
  1090. {
  1091.     short result;
  1092.     static BYTE parms[] =
  1093.         VTS_I2;
  1094.     InvokeHelper(0x58, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1095.         iChange);
  1096.     return result;
  1097. }
  1098.  
  1099. short CLead::Saturation(short iChange)
  1100. {
  1101.     short result;
  1102.     static BYTE parms[] =
  1103.         VTS_I2;
  1104.     InvokeHelper(0x59, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1105.         iChange);
  1106.     return result;
  1107. }
  1108.  
  1109. short CLead::Reverse()
  1110. {
  1111.     short result;
  1112.     InvokeHelper(0x5a, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1113.     return result;
  1114. }
  1115.  
  1116. short CLead::ForceRepaint()
  1117. {
  1118.     short result;
  1119.     InvokeHelper(0x5b, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1120.     return result;
  1121. }
  1122.  
  1123. short CLead::Mosaic(short iDim)
  1124. {
  1125.     short result;
  1126.     static BYTE parms[] =
  1127.         VTS_I2;
  1128.     InvokeHelper(0x5c, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1129.         iDim);
  1130.     return result;
  1131. }
  1132.  
  1133. short CLead::SpatialFilter(short iType)
  1134. {
  1135.     short result;
  1136.     static BYTE parms[] =
  1137.         VTS_I2;
  1138.     InvokeHelper(0x5d, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1139.         iType);
  1140.     return result;
  1141. }
  1142.  
  1143. short CLead::BinaryFilter(short iType)
  1144. {
  1145.     short result;
  1146.     static BYTE parms[] =
  1147.         VTS_I2;
  1148.     InvokeHelper(0x5e, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1149.         iType);
  1150.     return result;
  1151. }
  1152.  
  1153. short CLead::Save(LPCTSTR pszName, short iFormat, short iBitsPerPixel, short iQuality, BOOL bMultiPage)
  1154. {
  1155.     short result;
  1156.     static BYTE parms[] =
  1157.         VTS_BSTR VTS_I2 VTS_I2 VTS_I2 VTS_BOOL;
  1158.     InvokeHelper(0x5f, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1159.         pszName, iFormat, iBitsPerPixel, iQuality, bMultiPage);
  1160.     return result;
  1161. }
  1162.  
  1163. short CLead::Posterize(short iLevels)
  1164. {
  1165.     short result;
  1166.     static BYTE parms[] =
  1167.         VTS_I2;
  1168.     InvokeHelper(0x60, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1169.         iLevels);
  1170.     return result;
  1171. }
  1172.  
  1173. CPicture CLead::GetPicture()
  1174. {
  1175.     LPDISPATCH pDispatch;
  1176.     InvokeHelper(0x61, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
  1177.     return CPicture(pDispatch);
  1178. }
  1179.  
  1180. short CLead::SetPicture(LPDISPATCH pPicture)
  1181. {
  1182.     short result;
  1183.     static BYTE parms[] =
  1184.         VTS_DISPATCH;
  1185.     InvokeHelper(0x62, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1186.         pPicture);
  1187.     return result;
  1188. }
  1189.  
  1190. short CLead::Rotate(long iAngle, BOOL bResize, unsigned long crFill)
  1191. {
  1192.     short result;
  1193.     static BYTE parms[] =
  1194.         VTS_I4 VTS_BOOL VTS_I4;
  1195.     InvokeHelper(0x63, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1196.         iAngle, bResize, crFill);
  1197.     return result;
  1198. }
  1199.  
  1200. short CLead::Emboss(short iDirection, short iDepth)
  1201. {
  1202.     short result;
  1203.     static BYTE parms[] =
  1204.         VTS_I2 VTS_I2;
  1205.     InvokeHelper(0x64, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1206.         iDirection, iDepth);
  1207.     return result;
  1208. }
  1209.  
  1210. short CLead::AddNoise(short iRange, short iChannel)
  1211. {
  1212.     short result;
  1213.     static BYTE parms[] =
  1214.         VTS_I2 VTS_I2;
  1215.     InvokeHelper(0x65, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1216.         iRange, iChannel);
  1217.     return result;
  1218. }
  1219.  
  1220. short CLead::IntensityDetect(short iLow, short iHigh)
  1221. {
  1222.     short result;
  1223.     static BYTE parms[] =
  1224.         VTS_I2 VTS_I2;
  1225.     InvokeHelper(0x66, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1226.         iLow, iHigh);
  1227.     return result;
  1228. }
  1229.  
  1230. short CLead::Fill(unsigned long crFill)
  1231. {
  1232.     short result;
  1233.     static BYTE parms[] =
  1234.         VTS_I4;
  1235.     InvokeHelper(0x67, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1236.         crFill);
  1237.     return result;
  1238. }
  1239.  
  1240. short CLead::StretchIntensity()
  1241. {
  1242.     short result;
  1243.     InvokeHelper(0x68, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1244.     return result;
  1245. }
  1246.  
  1247. short CLead::Deskew()
  1248. {
  1249.     short result;
  1250.     InvokeHelper(0x69, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1251.     return result;
  1252. }
  1253.  
  1254. short CLead::GammaCorrect(short iGamma)
  1255. {
  1256.     short result;
  1257.     static BYTE parms[] =
  1258.         VTS_I2;
  1259.     InvokeHelper(0x6a, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1260.         iGamma);
  1261.     return result;
  1262. }
  1263.  
  1264. short CLead::Shear(short iAngle, BOOL bHorizontal, unsigned long crFill)
  1265. {
  1266.     short result;
  1267.     static BYTE parms[] =
  1268.         VTS_I2 VTS_BOOL VTS_I4;
  1269.     InvokeHelper(0x6b, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1270.         iAngle, bHorizontal, crFill);
  1271.     return result;
  1272. }
  1273.  
  1274. short CLead::CreateBitmap(float fWidth, float fHeight, short iBitsPerPixel)
  1275. {
  1276.     short result;
  1277.     static BYTE parms[] =
  1278.         VTS_R4 VTS_R4 VTS_I2;
  1279.     InvokeHelper(0x6c, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1280.         fWidth, fHeight, iBitsPerPixel);
  1281.     return result;
  1282. }
  1283.  
  1284. short CLead::Render(long hDC, float fLeft, float fTop, float fWidth, float fHeight)
  1285. {
  1286.     short result;
  1287.     static BYTE parms[] =
  1288.         VTS_I4 VTS_R4 VTS_R4 VTS_R4 VTS_R4;
  1289.     InvokeHelper(0x6d, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1290.         hDC, fLeft, fTop, fWidth, fHeight);
  1291.     return result;
  1292. }
  1293.  
  1294. long CLead::GetBitmapDC()
  1295. {
  1296.     long result;
  1297.     InvokeHelper(0x6e, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  1298.     return result;
  1299. }
  1300.  
  1301. short CLead::ReleaseBitmapDC()
  1302. {
  1303.     short result;
  1304.     InvokeHelper(0x6f, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1305.     return result;
  1306. }
  1307.  
  1308. short CLead::Halftone(short iType, long iAngle)
  1309. {
  1310.     short result;
  1311.     static BYTE parms[] =
  1312.         VTS_I2 VTS_I4;
  1313.     InvokeHelper(0x70, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1314.         iType, iAngle);
  1315.     return result;
  1316. }
  1317.  
  1318. short CLead::Size(float fWidth, float fHeight, short iFlags)
  1319. {
  1320.     short result;
  1321.     static BYTE parms[] =
  1322.         VTS_R4 VTS_R4 VTS_I2;
  1323.     InvokeHelper(0x71, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1324.         fWidth, fHeight, iFlags);
  1325.     return result;
  1326. }
  1327.  
  1328. short CLead::Copy(short iFlags)
  1329. {
  1330.     short result;
  1331.     static BYTE parms[] =
  1332.         VTS_I2;
  1333.     InvokeHelper(0x72, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1334.         iFlags);
  1335.     return result;
  1336. }
  1337.  
  1338. short CLead::Paste(short iFlags)
  1339. {
  1340.     short result;
  1341.     static BYTE parms[] =
  1342.         VTS_I2;
  1343.     InvokeHelper(0x73, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1344.         iFlags);
  1345.     return result;
  1346. }
  1347.  
  1348. short CLead::Load(LPCTSTR pszName, short iBitsPerPixel, short iPage)
  1349. {
  1350.     short result;
  1351.     static BYTE parms[] =
  1352.         VTS_BSTR VTS_I2 VTS_I2;
  1353.     InvokeHelper(0x74, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1354.         pszName, iBitsPerPixel, iPage);
  1355.     return result;
  1356. }
  1357.  
  1358. short CLead::SetDIB(long hDIB)
  1359. {
  1360.     short result;
  1361.     static BYTE parms[] =
  1362.         VTS_I4;
  1363.     InvokeHelper(0x75, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1364.         hDIB);
  1365.     return result;
  1366. }
  1367.  
  1368. long CLead::GetDIB()
  1369. {
  1370.     long result;
  1371.     InvokeHelper(0x76, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  1372.     return result;
  1373. }
  1374.  
  1375. short CLead::SetDDB(long hDC, long hBitmap, long hPalette)
  1376. {
  1377.     short result;
  1378.     static BYTE parms[] =
  1379.         VTS_I4 VTS_I4 VTS_I4;
  1380.     InvokeHelper(0x77, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1381.         hDC, hBitmap, hPalette);
  1382.     return result;
  1383. }
  1384.  
  1385. long CLead::GetDDB(long hDC)
  1386. {
  1387.     long result;
  1388.     static BYTE parms[] =
  1389.         VTS_I4;
  1390.     InvokeHelper(0x78, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  1391.         hDC);
  1392.     return result;
  1393. }
  1394.  
  1395. short CLead::RemapIntensity(short iChannel)
  1396. {
  1397.     short result;
  1398.     static BYTE parms[] =
  1399.         VTS_I2;
  1400.     InvokeHelper(0x79, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1401.         iChannel);
  1402.     return result;
  1403. }
  1404.  
  1405. short CLead::GetHistogram(short iChannel)
  1406. {
  1407.     short result;
  1408.     static BYTE parms[] =
  1409.         VTS_I2;
  1410.     InvokeHelper(0x7a, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1411.         iChannel);
  1412.     return result;
  1413. }
  1414.  
  1415. short CLead::ColorRes(short iBitsPerPixel, short iPalette, short iDither, short iColors)
  1416. {
  1417.     short result;
  1418.     static BYTE parms[] =
  1419.         VTS_I2 VTS_I2 VTS_I2 VTS_I2;
  1420.     InvokeHelper(0x7b, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1421.         iBitsPerPixel, iPalette, iDither, iColors);
  1422.     return result;
  1423. }
  1424.  
  1425. short CLead::Capture(long hDC, float fLeft, float fTop, float fWidth, float fHeight)
  1426. {
  1427.     short result;
  1428.     static BYTE parms[] =
  1429.         VTS_I4 VTS_R4 VTS_R4 VTS_R4 VTS_R4;
  1430.     InvokeHelper(0x7c, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1431.         hDC, fLeft, fTop, fWidth, fHeight);
  1432.     return result;
  1433. }
  1434.  
  1435. short CLead::ColorSeparate(long iFlags)
  1436. {
  1437.     short result;
  1438.     static BYTE parms[] =
  1439.         VTS_I4;
  1440.     InvokeHelper(0x7d, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1441.         iFlags);
  1442.     return result;
  1443. }
  1444.  
  1445. short CLead::ColorMerge(long iFlags)
  1446. {
  1447.     short result;
  1448.     static BYTE parms[] =
  1449.         VTS_I4;
  1450.     InvokeHelper(0x7e, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1451.         iFlags);
  1452.     return result;
  1453. }
  1454.  
  1455. short CLead::Underlay(long hBitmap, short iFlags)
  1456. {
  1457.     short result;
  1458.     static BYTE parms[] =
  1459.         VTS_I4 VTS_I2;
  1460.     InvokeHelper(0x7f, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1461.         hBitmap, iFlags);
  1462.     return result;
  1463. }
  1464.  
  1465. short CLead::Combine(float fLeft, float fTop, float fWidth, float fHeight, long hBitmap, float fSrcLeft, float fSrcTop, long iFlags)
  1466. {
  1467.     short result;
  1468.     static BYTE parms[] =
  1469.         VTS_R4 VTS_R4 VTS_R4 VTS_R4 VTS_I4 VTS_R4 VTS_R4 VTS_I4;
  1470.     InvokeHelper(0x80, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1471.         fLeft, fTop, fWidth, fHeight, hBitmap, fSrcLeft, fSrcTop, iFlags);
  1472.     return result;
  1473. }
  1474.  
  1475. short CLead::SetDstRect(float fLeft, float fTop, float fWidth, float fHeight)
  1476. {
  1477.     short result;
  1478.     static BYTE parms[] =
  1479.         VTS_R4 VTS_R4 VTS_R4 VTS_R4;
  1480.     InvokeHelper(0x81, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1481.         fLeft, fTop, fWidth, fHeight);
  1482.     return result;
  1483. }
  1484.  
  1485. short CLead::SetDstClipRect(float fLeft, float fTop, float fWidth, float fHeight)
  1486. {
  1487.     short result;
  1488.     static BYTE parms[] =
  1489.         VTS_R4 VTS_R4 VTS_R4 VTS_R4;
  1490.     InvokeHelper(0x82, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1491.         fLeft, fTop, fWidth, fHeight);
  1492.     return result;
  1493. }
  1494.  
  1495. short CLead::SetSrcRect(float fLeft, float fTop, float fWidth, float fHeight)
  1496. {
  1497.     short result;
  1498.     static BYTE parms[] =
  1499.         VTS_R4 VTS_R4 VTS_R4 VTS_R4;
  1500.     InvokeHelper(0x83, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1501.         fLeft, fTop, fWidth, fHeight);
  1502.     return result;
  1503. }
  1504.  
  1505. short CLead::SetSrcClipRect(float fLeft, float fTop, float fWidth, float fHeight)
  1506. {
  1507.     short result;
  1508.     static BYTE parms[] =
  1509.         VTS_R4 VTS_R4 VTS_R4 VTS_R4;
  1510.     InvokeHelper(0x84, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1511.         fLeft, fTop, fWidth, fHeight);
  1512.     return result;
  1513. }
  1514.  
  1515. short CLead::Trim(float fLeft, float fTop, float fWidth, float fHeight)
  1516. {
  1517.     short result;
  1518.     static BYTE parms[] =
  1519.         VTS_R4 VTS_R4 VTS_R4 VTS_R4;
  1520.     InvokeHelper(0x85, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1521.         fLeft, fTop, fWidth, fHeight);
  1522.     return result;
  1523. }
  1524.  
  1525. short CLead::HistoContrast(short iChange)
  1526. {
  1527.     short result;
  1528.     static BYTE parms[] =
  1529.         VTS_I2;
  1530.     InvokeHelper(0x86, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1531.         iChange);
  1532.     return result;
  1533. }
  1534.  
  1535. short CLead::GetFileInfo(LPCTSTR pszName, short iPage)
  1536. {
  1537.     short result;
  1538.     static BYTE parms[] =
  1539.         VTS_BSTR VTS_I2;
  1540.     InvokeHelper(0x87, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1541.         pszName, iPage);
  1542.     return result;
  1543. }
  1544.  
  1545. short CLead::SaveWithStamp(LPCTSTR pszName, short iFormat, short iBitsPerPixel, short iQuality, float fStampWidth, float fStampHeight, short iStampBits)
  1546. {
  1547.     short result;
  1548.     static BYTE parms[] =
  1549.         VTS_BSTR VTS_I2 VTS_I2 VTS_I2 VTS_R4 VTS_R4 VTS_I2;
  1550.     InvokeHelper(0x88, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1551.         pszName, iFormat, iBitsPerPixel, iQuality, fStampWidth, fStampHeight, iStampBits);
  1552.     return result;
  1553. }
  1554.  
  1555. short CLead::LoadStamp(LPCTSTR pszName)
  1556. {
  1557.     short result;
  1558.     static BYTE parms[] =
  1559.         VTS_BSTR;
  1560.     InvokeHelper(0x89, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1561.         pszName);
  1562.     return result;
  1563. }
  1564.  
  1565. void CLead::SetRubberBandRect(float fLeft, float fTop, float fWidth, float fHeight)
  1566. {
  1567.     static BYTE parms[] =
  1568.         VTS_R4 VTS_R4 VTS_R4 VTS_R4;
  1569.     InvokeHelper(0x8a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1570.          fLeft, fTop, fWidth, fHeight);
  1571. }
  1572.  
  1573. long CLead::GetClientDC()
  1574. {
  1575.     long result;
  1576.     InvokeHelper(0x8b, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  1577.     return result;
  1578. }
  1579.  
  1580. short CLead::ReleaseClientDC()
  1581. {
  1582.     short result;
  1583.     InvokeHelper(0x8c, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
  1584.     return result;
  1585. }
  1586.  
  1587. long CLead::GetPalette(long hDC)
  1588. {
  1589.     long result;
  1590.     static BYTE parms[] =
  1591.         VTS_I4;
  1592.     InvokeHelper(0x96, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  1593.         hDC);
  1594.     return result;
  1595. }
  1596.  
  1597. void CLead::dbAddNew()
  1598. {
  1599.     InvokeHelper(0x8d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1600. }
  1601.  
  1602. void CLead::dbDelete()
  1603. {
  1604.     InvokeHelper(0x8e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1605. }
  1606.  
  1607. void CLead::dbEdit()
  1608. {
  1609.     InvokeHelper(0x8f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1610. }
  1611.  
  1612. void CLead::dbMove(long lRows)
  1613. {
  1614.     static BYTE parms[] =
  1615.         VTS_I4;
  1616.     InvokeHelper(0x90, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1617.          lRows);
  1618. }
  1619.  
  1620. void CLead::dbMoveFirst()
  1621. {
  1622.     InvokeHelper(0x91, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1623. }
  1624.  
  1625. void CLead::dbMoveLast()
  1626. {
  1627.     InvokeHelper(0x92, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1628. }
  1629.  
  1630. void CLead::dbMoveNext()
  1631. {
  1632.     InvokeHelper(0x93, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1633. }
  1634.  
  1635. void CLead::dbMovePrev()
  1636. {
  1637.     InvokeHelper(0x94, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1638. }
  1639.  
  1640. void CLead::dbClose()
  1641. {
  1642.     InvokeHelper(0x95, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1643. }
  1644.  
  1645. unsigned long CLead::GetBitmapPalette(short iIndex)
  1646. {
  1647.     unsigned long result;
  1648.     static BYTE parms[] =
  1649.         VTS_I2;
  1650.     InvokeHelper(0x9c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  1651.         iIndex);
  1652.     return result;
  1653. }
  1654.  
  1655. void CLead::SetBitmapPalette(short iIndex, unsigned long newValue)
  1656. {
  1657.     static BYTE parms[] =
  1658.         VTS_I2 VTS_I4;
  1659.     InvokeHelper(0x9c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1660.          iIndex, newValue);
  1661. }
  1662.  
  1663. short CLead::GetRemapTable(short iIndex)
  1664. {
  1665.     short result;
  1666.     static BYTE parms[] =
  1667.         VTS_I2;
  1668.     InvokeHelper(0x9d, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  1669.         iIndex);
  1670.     return result;
  1671. }
  1672.  
  1673. void CLead::SetRemapTable(short iIndex, short nNewValue)
  1674. {
  1675.     static BYTE parms[] =
  1676.         VTS_I2 VTS_I2;
  1677.     InvokeHelper(0x9d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1678.          iIndex, nNewValue);
  1679. }
  1680.  
  1681. long CLead::GetHistogramTable(short iIndex)
  1682. {
  1683.     long result;
  1684.     static BYTE parms[] =
  1685.         VTS_I2;
  1686.     InvokeHelper(0x9e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  1687.         iIndex);
  1688.     return result;
  1689. }
  1690.  
  1691. void CLead::SetHistogramTable(short iIndex, long nNewValue)
  1692. {
  1693.     static BYTE parms[] =
  1694.         VTS_I2 VTS_I4;
  1695.     InvokeHelper(0x9e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1696.          iIndex, nNewValue);
  1697. }
  1698.  
  1699. unsigned long CLead::GetUserPalette(short iIndex)
  1700. {
  1701.     unsigned long result;
  1702.     static BYTE parms[] =
  1703.         VTS_I2;
  1704.     InvokeHelper(0x9f, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  1705.         iIndex);
  1706.     return result;
  1707. }
  1708.  
  1709. void CLead::SetUserPalette(short iIndex, unsigned long newValue)
  1710. {
  1711.     static BYTE parms[] =
  1712.         VTS_I2 VTS_I4;
  1713.     InvokeHelper(0x9f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1714.          iIndex, newValue);
  1715. }
  1716.  
  1717. long CLead::GetColorPlanes(short iIndex)
  1718. {
  1719.     long result;
  1720.     static BYTE parms[] =
  1721.         VTS_I2;
  1722.     InvokeHelper(0xa0, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  1723.         iIndex);
  1724.     return result;
  1725. }
  1726.  
  1727. void CLead::SetColorPlanes(short iIndex, long nNewValue)
  1728. {
  1729.     static BYTE parms[] =
  1730.         VTS_I2 VTS_I4;
  1731.     InvokeHelper(0xa0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1732.          iIndex, nNewValue);
  1733. }
  1734.  
  1735. BOOL CLead::GetInfoPCDRes(short iIndex)
  1736. {
  1737.     BOOL result;
  1738.     static BYTE parms[] =
  1739.         VTS_I2;
  1740.     InvokeHelper(0xa1, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, parms,
  1741.         iIndex);
  1742.     return result;
  1743. }
  1744.  
  1745. BOOL CLead::dbRequery()
  1746. {
  1747.     BOOL result;
  1748.     InvokeHelper(0x97, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1749.     return result;
  1750. }
  1751.  
  1752. BOOL CLead::dbOpen(LPCTSTR pszConnect, LPCTSTR pszSQL, LPCTSTR pszField, long iOptions)
  1753. {
  1754.     BOOL result;
  1755.     static BYTE parms[] =
  1756.         VTS_BSTR VTS_BSTR VTS_BSTR VTS_I4;
  1757.     InvokeHelper(0x98, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1758.         pszConnect, pszSQL, pszField, iOptions);
  1759.     return result;
  1760. }
  1761.  
  1762. short CLead::dbUpdate(short iFormat, short iBitsPerPixel, short iQuality)
  1763. {
  1764.     short result;
  1765.     static BYTE parms[] =
  1766.         VTS_I2 VTS_I2 VTS_I2;
  1767.     InvokeHelper(0x99, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1768.         iFormat, iBitsPerPixel, iQuality);
  1769.     return result;
  1770. }
  1771.  
  1772. long CLead::PrintStart()
  1773. {
  1774.     long result;
  1775.     InvokeHelper(0x9a, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  1776.     return result;
  1777. }
  1778.  
  1779. void CLead::PrintEnd(long hDC)
  1780. {
  1781.     static BYTE parms[] =
  1782.         VTS_I4;
  1783.     InvokeHelper(0x9b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1784.          hDC);
  1785. }
  1786.  
  1787. void CLead::AboutBox()
  1788. {
  1789.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1790. }
  1791.