// ************************************************************************ //
// WARNING                                                                    
// -------                                                                    
// The types declared in this file were generated from data read from a       
// Type Library. If this type library is explicitly or indirectly (via        
// another type library referring to this type library) re-imported, or the   
// 'Refresh' command of the Type Library Editor activated while editing the   
// Type Library, the contents of this file will be regenerated and all        
// manual modifications will be lost.                                         
// ************************************************************************ //

// $Rev: 5081 $
// File generated on 2016-04-07 ¿ÀÈÄ 3:06:36 from Type Library described below.

// ************************************************************************  //
// Type Lib: C:\Program Files\Hnc\Hwp80\HwpCtrl.ocx (1)
// LIBID: {86E6E883-3879-4514-A25B-81023981DA19}
// LCID: 0
// Helpfile: C:\Program Files\Hnc\Hwp80\HwpCtrl.hlp
// HelpString: HwpCtrl ActiveX Control module
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINDOWS\system32\STDOLE2.TLB)
// ************************************************************************ //
#ifndef   HWPCONTROLLib_TLBH
#define   HWPCONTROLLib_TLBH

#pragma option push -b -w-inl

#if !defined(__UTILCLS_H)
#include <utilcls.h>
#endif
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0700)
//
// The code generated by the TLIBIMP utility or the Import|TypeLibrary 
// and Import|ActiveX feature of C++Builder rely on specific versions of
// the header file UTILCLS.H found in the INCLUDE\VCL directory. If an 
// older version of the file is detected, you probably need an update/patch.
//
#error "This file requires a newer version of the header UTILCLS.H" \
       "You need to apply an update/patch to your copy of C++Builder"
#endif
#include <olectl.h>
#include <ocidl.h>
#if defined(USING_ATLVCL) || defined(USING_ATL)
#if !defined(__TLB_NO_EVENT_WRAPPERS)
#include <atl/atlmod.h>
#endif
#endif


// *********************************************************************//
// Forward reference of some VCL types (to avoid including STDVCL.HPP)    
// *********************************************************************//
namespace Stdvcl {class IStrings; class IStringsDisp;}
using namespace Stdvcl;
typedef TComInterface<IStrings> IStringsPtr;
typedef TComInterface<IStringsDisp> IStringsDispPtr;

namespace Hwpcontrollib_tlb
{

// *********************************************************************//
// HelpString: HwpCtrl ActiveX Control module
// Version:    1.2
// *********************************************************************//


// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:        
//   Type Libraries     : LIBID_xxxx                                      
//   CoClasses          : CLSID_xxxx                                      
//   DISPInterfaces     : DIID_xxxx                                       
//   Non-DISP interfaces: IID_xxxx                                        
// *********************************************************************//
extern __declspec (package) const GUID LIBID_HWPCONTROLLib;
extern __declspec (package) const GUID DIID__DHwpCtrl;
extern __declspec (package) const GUID DIID__DHwpCtrlEvents;
extern __declspec (package) const GUID CLSID_HwpCtrl;
extern __declspec (package) const GUID DIID_DHwpAction;
extern __declspec (package) const GUID CLSID_HwpAction;
extern __declspec (package) const GUID DIID_DHwpParameterSet;
extern __declspec (package) const GUID CLSID_HwpParameterSet;
extern __declspec (package) const GUID DIID_DHwpParameterArray;
extern __declspec (package) const GUID CLSID_HwpParameterArray;
extern __declspec (package) const GUID DIID_DHwpCtrlCode;
extern __declspec (package) const GUID CLSID_HwpCtrlCode;

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
interface DECLSPEC_UUID("{377C0BC8-E22C-45ED-851A-FBA0208DDC23}") _DHwpCtrl;
typedef TComInterface<_DHwpCtrl, &DIID__DHwpCtrl> _DHwpCtrlPtr;

interface DECLSPEC_UUID("{402995CB-FF79-4467-B7D1-4FFA32592B21}") _DHwpCtrlEvents;
typedef TComInterface<_DHwpCtrlEvents, &DIID__DHwpCtrlEvents> _DHwpCtrlEventsPtr;

interface DECLSPEC_UUID("{5227AA3C-8332-4F0A-9B82-D7D89A5CF395}") DHwpAction;
typedef TComInterface<DHwpAction, &DIID_DHwpAction> DHwpActionPtr;

interface DECLSPEC_UUID("{E5BBBA9F-732F-450D-8433-1B7AA4F60503}") DHwpParameterSet;
typedef TComInterface<DHwpParameterSet, &DIID_DHwpParameterSet> DHwpParameterSetPtr;

interface DECLSPEC_UUID("{E35C1FFB-BAD5-44B7-A8F2-7B598123C2FC}") DHwpParameterArray;
typedef TComInterface<DHwpParameterArray, &DIID_DHwpParameterArray> DHwpParameterArrayPtr;

interface DECLSPEC_UUID("{39E84D56-02DA-4AB0-B0C9-4F8AD94E3DF6}") DHwpCtrlCode;
typedef TComInterface<DHwpCtrlCode, &DIID_DHwpCtrlCode> DHwpCtrlCodePtr;


// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
//                                                                        
// The LIBID_OF_ macro(s) map a LIBID_OF_CoClassName to the GUID of this  
// TypeLibrary. It simplifies the updating of macros when CoClass name    
// change.                                                                
// *********************************************************************//
typedef _DHwpCtrl HwpCtrl;
typedef _DHwpCtrlPtr HwpCtrlPtr;
typedef DHwpAction HwpAction;
typedef DHwpActionPtr HwpActionPtr;
typedef DHwpParameterSet HwpParameterSet;
typedef DHwpParameterSetPtr HwpParameterSetPtr;
typedef DHwpParameterArray HwpParameterArray;
typedef DHwpParameterArrayPtr HwpParameterArrayPtr;
typedef DHwpCtrlCode HwpCtrlCode;
typedef DHwpCtrlCodePtr HwpCtrlCodePtr;

#define LIBID_OF_HwpCtrl (&LIBID_HWPCONTROLLib)
#define LIBID_OF_HwpAction (&LIBID_HWPCONTROLLib)
#define LIBID_OF_HwpParameterSet (&LIBID_HWPCONTROLLib)
#define LIBID_OF_HwpParameterArray (&LIBID_HWPCONTROLLib)
#define LIBID_OF_HwpCtrlCode (&LIBID_HWPCONTROLLib)
// *********************************************************************//
// Interface: _DHwpCtrl
// Flags:     (4112) Hidden Dispatchable
// GUID:      {377C0BC8-E22C-45ED-851A-FBA0208DDC23}
// *********************************************************************//
interface _DHwpCtrl : public TDispWrapper<IDispatch>
{
  LPDISPATCH __fastcall InsertCtrl(BSTR ctrlid, VARIANT initparam/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* InsertCtrl */ DISPID(24));
    TAutoArgs<2> _args;
    _args[1] = ctrlid /*[VT_BSTR:0]*/;
    _args[2] = initparam /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall PutFieldText(BSTR fieldlist, BSTR textlist)
  {
    _TDispID _dispid(/* PutFieldText */ DISPID(27));
    TAutoArgs<2> _args;
    _args[1] = fieldlist /*[VT_BSTR:0]*/;
    _args[2] = textlist /*[VT_BSTR:0]*/;
    OleProcedure(_dispid, _args);
  }

  VARIANT_BOOL __fastcall MoveToField(BSTR field, VARIANT text/*[opt]*/= TNoParam(), 
                                      VARIANT start/*[opt]*/= TNoParam(), 
                                      VARIANT select/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* MoveToField */ DISPID(25));
    TAutoArgs<4> _args;
    _args[1] = field /*[VT_BSTR:0]*/;
    _args[2] = text /*[VT_VARIANT:0]*/;
    _args[3] = start /*[VT_VARIANT:0]*/;
    _args[4] = select /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall InitScan(VARIANT option/*[opt]*/= TNoParam(), 
                                   VARIANT range/*[opt]*/= TNoParam(), 
                                   VARIANT spara/*[opt]*/= TNoParam(), 
                                   VARIANT spos/*[opt]*/= TNoParam(), 
                                   VARIANT epara/*[opt]*/= TNoParam(), 
                                   VARIANT epos/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* InitScan */ DISPID(46));
    TAutoArgs<6> _args;
    _args[1] = option /*[VT_VARIANT:0]*/;
    _args[2] = range /*[VT_VARIANT:0]*/;
    _args[3] = spara /*[VT_VARIANT:0]*/;
    _args[4] = spos /*[VT_VARIANT:0]*/;
    _args[5] = epara /*[VT_VARIANT:0]*/;
    _args[6] = epos /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall Open(BSTR Path, VARIANT format/*[opt]*/= TNoParam(), 
                               VARIANT arg/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* Open */ DISPID(26));
    TAutoArgs<3> _args;
    _args[1] = Path /*[VT_BSTR:0]*/;
    _args[2] = format /*[VT_VARIANT:0]*/;
    _args[3] = arg /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall Insert(BSTR Path, VARIANT format/*[opt]*/= TNoParam(), 
                                 VARIANT arg/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* Insert */ DISPID(23));
    TAutoArgs<3> _args;
    _args[1] = Path /*[VT_BSTR:0]*/;
    _args[2] = format /*[VT_VARIANT:0]*/;
    _args[3] = arg /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall CreatePageImage(BSTR Path, VARIANT pgno/*[opt]*/= TNoParam(), 
                                          VARIANT resolution/*[opt]*/= TNoParam(), 
                                          VARIANT depth/*[opt]*/= TNoParam(), 
                                          VARIANT format/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* CreatePageImage */ DISPID(18));
    TAutoArgs<5> _args;
    _args[1] = Path /*[VT_BSTR:0]*/;
    _args[2] = pgno /*[VT_VARIANT:0]*/;
    _args[3] = resolution /*[VT_VARIANT:0]*/;
    _args[4] = depth /*[VT_VARIANT:0]*/;
    _args[5] = format /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall RenameField(BSTR oldname, BSTR newname)
  {
    _TDispID _dispid(/* RenameField */ DISPID(28));
    TAutoArgs<2> _args;
    _args[1] = oldname /*[VT_BSTR:0]*/;
    _args[2] = newname /*[VT_BSTR:0]*/;
    OleProcedure(_dispid, _args);
  }

  VARIANT_BOOL __fastcall Save(VARIANT save_if_dirty/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* Save */ DISPID(30));
    TAutoArgs<1> _args;
    _args[1] = save_if_dirty /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall Run(BSTR actid)
  {
    _TDispID _dispid(/* Run */ DISPID(29));
    TAutoArgs<1> _args;
    _args[1] = actid /*[VT_BSTR:0]*/;
    OleProcedure(_dispid, _args);
  }

  VARIANT_BOOL __fastcall GetSelectedPosBySet(LPDISPATCH sset, LPDISPATCH eset)
  {
    _TDispID _dispid(/* GetSelectedPosBySet */ DISPID(15064));
    TAutoArgs<2> _args;
    _args[1] = sset /*[VT_DISPATCH:0]*/;
    _args[2] = eset /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall MakeVersionDiffAll(VARIANT filepath/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* MakeVersionDiffAll */ DISPID(15068));
    TAutoArgs<1> _args;
    _args[1] = filepath /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT __fastcall GetFormObjectAttr(BSTR formname, BSTR attrname)
  {
    _TDispID _dispid(/* GetFormObjectAttr */ DISPID(15060));
    TAutoArgs<2> _args;
    _args[1] = formname /*[VT_BSTR:0]*/;
    _args[2] = attrname /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall MoveToFieldEx(BSTR field, VARIANT text/*[opt]*/= TNoParam(), 
                                        VARIANT start/*[opt]*/= TNoParam(), 
                                        VARIANT select/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* MoveToFieldEx */ DISPID(77));
    TAutoArgs<4> _args;
    _args[1] = field /*[VT_BSTR:0]*/;
    _args[2] = text /*[VT_VARIANT:0]*/;
    _args[3] = start /*[VT_VARIANT:0]*/;
    _args[4] = select /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SetAutoSave(BSTR FileName, long saveinterval)
  {
    _TDispID _dispid(/* SetAutoSave */ DISPID(15059));
    TAutoArgs<2> _args;
    _args[1] = FileName /*[VT_BSTR:0]*/;
    _args[2] = saveinterval /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall VersionSave(BSTR filepath, long overwirte, long infolock, 
                                      VARIANT writer/*[opt]*/= TNoParam(), 
                                      VARIANT description/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* VersionSave */ DISPID(15066));
    TAutoArgs<5> _args;
    _args[1] = filepath /*[VT_BSTR:0]*/;
    _args[2] = overwirte /*[VT_I4:0]*/;
    _args[3] = infolock /*[VT_I4:0]*/;
    _args[4] = writer /*[VT_VARIANT:0]*/;
    _args[5] = description /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall VersionDelete(long index)
  {
    _TDispID _dispid(/* VersionDelete */ DISPID(15067));
    TAutoArgs<1> _args;
    _args[1] = index /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall GetTableCellAddr(long type)
  {
    _TDispID _dispid(/* GetTableCellAddr */ DISPID(15065));
    TAutoArgs<1> _args;
    _args[1] = type /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall GetVersionInfo(long index)
  {
    _TDispID _dispid(/* GetVersionInfo */ DISPID(15069));
    TAutoArgs<1> _args;
    _args[1] = index /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall GetVersionHistoryCount()
  {
    _TDispID _dispid(/* GetVersionHistoryCount */ DISPID(15070));
    TAutoArgs<0> _args;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall CreateAction(BSTR actid)
  {
    _TDispID _dispid(/* CreateAction */ DISPID(17));
    TAutoArgs<1> _args;
    _args[1] = actid /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SaveDocument(BSTR szFileName, BSTR szFileType)
  {
    _TDispID _dispid(/* SaveDocument */ DISPID(33));
    TAutoArgs<2> _args;
    _args[1] = szFileName /*[VT_BSTR:0]*/;
    _args[2] = szFileType /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall OpenDocument(BSTR szFileName, BSTR szFileType)
  {
    _TDispID _dispid(/* OpenDocument */ DISPID(32));
    TAutoArgs<2> _args;
    _args[1] = szFileName /*[VT_BSTR:0]*/;
    _args[2] = szFileType /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall InsertPicture(BSTR Path, VARIANT embedded/*[opt]*/= TNoParam(), 
                                      VARIANT sizeOption/*[opt]*/= TNoParam(), 
                                      VARIANT reverse/*[opt]*/= TNoParam(), 
                                      VARIANT watermark/*[opt]*/= TNoParam(), 
                                      VARIANT effect/*[opt]*/= TNoParam(), 
                                      VARIANT width/*[opt]*/= TNoParam(), 
                                      VARIANT height/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* InsertPicture */ DISPID(38));
    TAutoArgs<8> _args;
    _args[1] = Path /*[VT_BSTR:0]*/;
    _args[2] = embedded /*[VT_VARIANT:0]*/;
    _args[3] = sizeOption /*[VT_VARIANT:0]*/;
    _args[4] = reverse /*[VT_VARIANT:0]*/;
    _args[5] = watermark /*[VT_VARIANT:0]*/;
    _args[6] = effect /*[VT_VARIANT:0]*/;
    _args[7] = width /*[VT_VARIANT:0]*/;
    _args[8] = height /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SetCurFieldName(BSTR fieldname, VARIANT option/*[opt]*/= TNoParam(), 
                                          VARIANT direction/*[opt]*/= TNoParam(), 
                                          VARIANT memo/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* SetCurFieldName */ DISPID(44));
    TAutoArgs<4> _args;
    _args[1] = fieldname /*[VT_BSTR:0]*/;
    _args[2] = option /*[VT_VARIANT:0]*/;
    _args[3] = direction /*[VT_VARIANT:0]*/;
    _args[4] = memo /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  BSTR __fastcall GetCurFieldName(VARIANT option/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* GetCurFieldName */ DISPID(43));
    TAutoArgs<1> _args;
    _args[1] = option /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SetToolBar(long lToolBarID, VARIANT varID)
  {
    _TDispID _dispid(/* SetToolBar */ DISPID(36));
    TAutoArgs<2> _args;
    _args[1] = lToolBarID /*[VT_I4:0]*/;
    _args[2] = varID /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall PrintDocument()
  {
    _TDispID _dispid(/* PrintDocument */ DISPID(35));
    TAutoArgs<0> _args;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall ShowToolBar(long bShow)
  {
    _TDispID _dispid(/* ShowToolBar */ DISPID(37));
    TAutoArgs<1> _args;
    _args[1] = bShow /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SaveAs(BSTR Path, VARIANT format/*[opt]*/= TNoParam(), 
                                 VARIANT arg/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* SaveAs */ DISPID(31));
    TAutoArgs<3> _args;
    _args[1] = Path /*[VT_BSTR:0]*/;
    _args[2] = format /*[VT_VARIANT:0]*/;
    _args[3] = arg /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall InsertDocument(BSTR szFileName)
  {
    _TDispID _dispid(/* InsertDocument */ DISPID(34));
    TAutoArgs<1> _args;
    _args[1] = szFileName /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  BSTR __fastcall GetFieldList(VARIANT number/*[opt]*/= TNoParam(), 
                               VARIANT option/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* GetFieldList */ DISPID(21));
    TAutoArgs<2> _args;
    _args[1] = number /*[VT_VARIANT:0]*/;
    _args[2] = option /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall FieldExist(BSTR field)
  {
    _TDispID _dispid(/* FieldExist */ DISPID(20));
    TAutoArgs<1> _args;
    _args[1] = field /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  BSTR __fastcall GetFieldText(BSTR fieldlist)
  {
    _TDispID _dispid(/* GetFieldText */ DISPID(22));
    TAutoArgs<1> _args;
    _args[1] = fieldlist /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall Clear(VARIANT option/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* Clear */ DISPID(16));
    TAutoArgs<1> _args;
    _args[1] = option /*[VT_VARIANT:0]*/;
    OleProcedure(_dispid, _args);
  }

  LPDISPATCH __fastcall CreateSet(BSTR setid)
  {
    _TDispID _dispid(/* CreateSet */ DISPID(19));
    TAutoArgs<1> _args;
    _args[1] = setid /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SelectText(long spara, long spos, long epara, long epos)
  {
    _TDispID _dispid(/* SelectText */ DISPID(42));
    TAutoArgs<4> _args;
    _args[1] = spara /*[VT_I4:0]*/;
    _args[2] = spos /*[VT_I4:0]*/;
    _args[3] = epara /*[VT_I4:0]*/;
    _args[4] = epos /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall DeleteCtrl(LPDISPATCH ctrl)
  {
    _TDispID _dispid(/* DeleteCtrl */ DISPID(45));
    TAutoArgs<1> _args;
    _args[1] = ctrl /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall CreateField(BSTR direction, VARIANT memo/*[opt]*/= TNoParam(), 
                                      VARIANT name/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* CreateField */ DISPID(39));
    TAutoArgs<3> _args;
    _args[1] = direction /*[VT_BSTR:0]*/;
    _args[2] = memo /*[VT_VARIANT:0]*/;
    _args[3] = name /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall MovePos(VARIANT moveID/*[opt]*/= TNoParam(), 
                                  VARIANT para/*[opt]*/= TNoParam(), 
                                  VARIANT pos/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* MovePos */ DISPID(41));
    TAutoArgs<3> _args;
    _args[1] = moveID /*[VT_VARIANT:0]*/;
    _args[2] = para /*[VT_VARIANT:0]*/;
    _args[3] = pos /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall SetClientName(BSTR szClient)
  {
    _TDispID _dispid(/* SetClientName */ DISPID(40));
    TAutoArgs<1> _args;
    _args[1] = szClient /*[VT_BSTR:0]*/;
    OleProcedure(_dispid, _args);
  }

  VARIANT_BOOL __fastcall GetSelectedPos(long* slist, long* spara, long* spos, long* elist, 
                                         long* epara, long* epos)
  {
    _TDispID _dispid(/* GetSelectedPos */ DISPID(15063));
    TAutoArgs<6> _args;
    _args[1] = slist /*[VT_I4:1]*/;
    _args[2] = spara /*[VT_I4:1]*/;
    _args[3] = spos /*[VT_I4:1]*/;
    _args[4] = elist /*[VT_I4:1]*/;
    _args[5] = epara /*[VT_I4:1]*/;
    _args[6] = epos /*[VT_I4:1]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall IsCommandLock(BSTR actionID)
  {
    _TDispID _dispid(/* IsCommandLock */ DISPID(50));
    TAutoArgs<1> _args;
    _args[1] = actionID /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall GetFilterList(BSTR* szfilterlist, VARIANT flags)
  {
    _TDispID _dispid(/* GetFilterList */ DISPID(51));
    TAutoArgs<2> _args;
    _args[1] = szfilterlist /*[VT_BSTR:1]*/;
    _args[2] = flags /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall ReplaceAction(BSTR OldActionID, BSTR NewActionID)
  {
    _TDispID _dispid(/* ReplaceAction */ DISPID(70));
    TAutoArgs<2> _args;
    _args[1] = OldActionID /*[VT_BSTR:0]*/;
    _args[2] = NewActionID /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  BSTR __fastcall SaveState(BSTR FileName)
  {
    _TDispID _dispid(/* SaveState */ DISPID(68));
    TAutoArgs<1> _args;
    _args[1] = FileName /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall LoadState(BSTR FileName)
  {
    _TDispID _dispid(/* LoadState */ DISPID(69));
    TAutoArgs<1> _args;
    _args[1] = FileName /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall LockCommand(BSTR actionID, long lock)
  {
    _TDispID _dispid(/* LockCommand */ DISPID(49));
    TAutoArgs<2> _args;
    _args[1] = actionID /*[VT_BSTR:0]*/;
    _args[2] = lock /*[VT_I4:0]*/;
    OleProcedure(_dispid, _args);
  }

  VARIANT_BOOL __fastcall SetPos(long list, long para, long pos)
  {
    _TDispID _dispid(/* SetPos */ DISPID(53));
    TAutoArgs<3> _args;
    _args[1] = list /*[VT_I4:0]*/;
    _args[2] = para /*[VT_I4:0]*/;
    _args[3] = pos /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall ReleaseScan()
  {
    _TDispID _dispid(/* ReleaseScan */ DISPID(48));
    OleProcedure(_dispid);
  }

  void __fastcall GetPos(long* list, long* para, long* pos)
  {
    _TDispID _dispid(/* GetPos */ DISPID(52));
    TAutoArgs<3> _args;
    _args[1] = list /*[VT_I4:1]*/;
    _args[2] = para /*[VT_I4:1]*/;
    _args[3] = pos /*[VT_I4:1]*/;
    OleProcedure(_dispid, _args);
  }

  long __fastcall GetText(BSTR* text)
  {
    _TDispID _dispid(/* GetText */ DISPID(47));
    TAutoArgs<1> _args;
    _args[1] = text /*[VT_BSTR:1]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT __fastcall InsertBackgroundPicture(BSTR bordertype, BSTR Path, 
                                             VARIANT embedded/*[opt]*/= TNoParam(), 
                                             VARIANT filloption/*[opt]*/= TNoParam(), 
                                             VARIANT watermark/*[opt]*/= TNoParam(), 
                                             VARIANT effect/*[opt]*/= TNoParam(), 
                                             VARIANT brightness/*[opt]*/= TNoParam(), 
                                             VARIANT contrast/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* InsertBackgroundPicture */ DISPID(61));
    TAutoArgs<8> _args;
    _args[1] = bordertype /*[VT_BSTR:0]*/;
    _args[2] = Path /*[VT_BSTR:0]*/;
    _args[3] = embedded /*[VT_VARIANT:0]*/;
    _args[4] = filloption /*[VT_VARIANT:0]*/;
    _args[5] = watermark /*[VT_VARIANT:0]*/;
    _args[6] = effect /*[VT_VARIANT:0]*/;
    _args[7] = brightness /*[VT_VARIANT:0]*/;
    _args[8] = contrast /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall SetFieldViewOption(long option)
  {
    _TDispID _dispid(/* SetFieldViewOption */ DISPID(62));
    TAutoArgs<1> _args;
    _args[1] = option /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall ShowStatusBar(long Show)
  {
    _TDispID _dispid(/* ShowStatusBar */ DISPID(66));
    TAutoArgs<1> _args;
    _args[1] = Show /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall SetTextFile(VARIANT data, BSTR format, BSTR option)
  {
    _TDispID _dispid(/* SetTextFile */ DISPID(64));
    TAutoArgs<3> _args;
    _args[1] = data /*[VT_VARIANT:0]*/;
    _args[2] = format /*[VT_BSTR:0]*/;
    _args[3] = option /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall GetMousePos(long Xrelto, long Yrelto)
  {
    _TDispID _dispid(/* GetMousePos */ DISPID(65));
    TAutoArgs<2> _args;
    _args[1] = Xrelto /*[VT_I4:0]*/;
    _args[2] = Yrelto /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall GetViewStatus(long nType)
  {
    _TDispID _dispid(/* GetViewStatus */ DISPID(75));
    TAutoArgs<1> _args;
    _args[1] = nType /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall RegisterModule(BSTR ModuleType, VARIANT ModuleData)
  {
    _TDispID _dispid(/* RegisterModule */ DISPID(76));
    TAutoArgs<2> _args;
    _args[1] = ModuleType /*[VT_BSTR:0]*/;
    _args[2] = ModuleData /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall GetMessageSet()
  {
    _TDispID _dispid(/* GetMessageSet */ DISPID(74));
    TAutoArgs<0> _args;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT __fastcall GetTextFile(BSTR format, BSTR option)
  {
    _TDispID _dispid(/* GetTextFile */ DISPID(63));
    TAutoArgs<2> _args;
    _args[1] = format /*[VT_BSTR:0]*/;
    _args[2] = option /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall GetFileInfo(BSTR FileName)
  {
    _TDispID _dispid(/* GetFileInfo */ DISPID(67));
    TAutoArgs<1> _args;
    _args[1] = FileName /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall GetPosBySet()
  {
    _TDispID _dispid(/* GetPosBySet */ DISPID(58));
    TAutoArgs<0> _args;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall ConvertPUAHangulToUnicode(VARIANT reverse/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* ConvertPUAHangulToUnicode */ DISPID(16000));
    TAutoArgs<1> _args;
    _args[1] = reverse /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall AboutBox()
  {
    _TDispID _dispid(/* AboutBox */ DISPID(-552));
    OleProcedure(_dispid);
  }

  BSTR __fastcall GetBinDataPath(long binid)
  {
    _TDispID _dispid(/* GetBinDataPath */ DISPID(15081));
    TAutoArgs<1> _args;
    _args[1] = binid /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall InsertMenu(BSTR menuidx, BSTR menustr, BSTR actionstr, long menutype)
  {
    _TDispID _dispid(/* InsertMenu */ DISPID(15073));
    TAutoArgs<4> _args;
    _args[1] = menuidx /*[VT_BSTR:0]*/;
    _args[2] = menustr /*[VT_BSTR:0]*/;
    _args[3] = actionstr /*[VT_BSTR:0]*/;
    _args[4] = menutype /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall GetMessageBoxMode()
  {
    _TDispID _dispid(/* GetMessageBoxMode */ DISPID(15077));
    TAutoArgs<0> _args;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SetFormObjectAttr(BSTR formname, BSTR attrname, VARIANT value)
  {
    _TDispID _dispid(/* SetFormObjectAttr */ DISPID(15061));
    TAutoArgs<3> _args;
    _args[1] = formname /*[VT_BSTR:0]*/;
    _args[2] = attrname /*[VT_BSTR:0]*/;
    _args[3] = value /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall PreviewCommand(long previewmode)
  {
    _TDispID _dispid(/* PreviewCommand */ DISPID(15062));
    TAutoArgs<1> _args;
    _args[1] = previewmode /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall ImportStyle(LPDISPATCH styleset)
  {
    _TDispID _dispid(/* ImportStyle */ DISPID(15080));
    TAutoArgs<1> _args;
    _args[1] = styleset /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall SetMessageBoxMode(long mode)
  {
    _TDispID _dispid(/* SetMessageBoxMode */ DISPID(15078));
    TAutoArgs<1> _args;
    _args[1] = mode /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall ExportStyle(LPDISPATCH styleset)
  {
    _TDispID _dispid(/* ExportStyle */ DISPID(15079));
    TAutoArgs<1> _args;
    _args[1] = styleset /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall GetActionCmdUIStatus(BSTR actid, long bWithKey, long* bEnabled, 
                                               long* bChecked, long* bRadio, BSTR* szText)
  {
    _TDispID _dispid(/* GetActionCmdUIStatus */ DISPID(55));
    TAutoArgs<6> _args;
    _args[1] = actid /*[VT_BSTR:0]*/;
    _args[2] = bWithKey /*[VT_I4:0]*/;
    _args[3] = bEnabled /*[VT_I4:1]*/;
    _args[4] = bChecked /*[VT_I4:1]*/;
    _args[5] = bRadio /*[VT_I4:1]*/;
    _args[6] = szText /*[VT_BSTR:1]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall ModifyFieldProperties(BSTR field, long remove, long add)
  {
    _TDispID _dispid(/* ModifyFieldProperties */ DISPID(57));
    TAutoArgs<3> _args;
    _args[1] = field /*[VT_BSTR:0]*/;
    _args[2] = remove /*[VT_I4:0]*/;
    _args[3] = add /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall KeyIndicator(long* seccnt, long* secno, long* prnpageno, long* colno, 
                                       long* line, long* pos, short* over, BSTR* ctrlname)
  {
    _TDispID _dispid(/* KeyIndicator */ DISPID(54));
    TAutoArgs<8> _args;
    _args[1] = seccnt /*[VT_I4:1]*/;
    _args[2] = secno /*[VT_I4:1]*/;
    _args[3] = prnpageno /*[VT_I4:1]*/;
    _args[4] = colno /*[VT_I4:1]*/;
    _args[5] = line /*[VT_I4:1]*/;
    _args[6] = pos /*[VT_I4:1]*/;
    _args[7] = over /*[VT_I2:1]*/;
    _args[8] = ctrlname /*[VT_BSTR:1]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SetPosBySet(LPDISPATCH pos)
  {
    _TDispID _dispid(/* SetPosBySet */ DISPID(59));
    TAutoArgs<1> _args;
    _args[1] = pos /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall GetTextBySet(LPDISPATCH text)
  {
    _TDispID _dispid(/* GetTextBySet */ DISPID(60));
    TAutoArgs<1> _args;
    _args[1] = text /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  BSTR __fastcall GetScriptSource(BSTR filepath)
  {
    _TDispID _dispid(/* GetScriptSource */ DISPID(15071));
    TAutoArgs<1> _args;
    _args[1] = filepath /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall RunScriptMacro(BSTR FunctionName, long uMacroType, long uScriptType)
  {
    _TDispID _dispid(/* RunScriptMacro */ DISPID(15072));
    TAutoArgs<3> _args;
    _args[1] = FunctionName /*[VT_BSTR:0]*/;
    _args[2] = uMacroType /*[VT_I4:0]*/;
    _args[3] = uScriptType /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall SetBarCodeImage(BSTR lpImagePath, long pgno, long index, long x, long y, 
                                          VARIANT width/*[opt]*/= TNoParam(), 
                                          VARIANT height/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* SetBarCodeImage */ DISPID(15076));
    TAutoArgs<7> _args;
    _args[1] = lpImagePath /*[VT_BSTR:0]*/;
    _args[2] = pgno /*[VT_I4:0]*/;
    _args[3] = index /*[VT_I4:0]*/;
    _args[4] = x /*[VT_I4:0]*/;
    _args[5] = y /*[VT_I4:0]*/;
    _args[6] = width /*[VT_VARIANT:0]*/;
    _args[7] = height /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall RemoveMenu(BSTR menuidx, long menutype)
  {
    _TDispID _dispid(/* RemoveMenu */ DISPID(15074));
    TAutoArgs<2> _args;
    _args[1] = menuidx /*[VT_BSTR:0]*/;
    _args[2] = menutype /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  BSTR __fastcall GetPageText(long pgno, VARIANT option/*[opt]*/= TNoParam())
  {
    _TDispID _dispid(/* GetPageText */ DISPID(15075));
    TAutoArgs<2> _args;
    _args[1] = pgno /*[VT_I4:0]*/;
    _args[2] = option /*[VT_VARIANT:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_XHwpDocuments(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* XHwpDocuments */ DISPID(122));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_XHwpDocuments()
  {
    _TDispID _dispid(/* XHwpDocuments */ DISPID(122));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_IsPreviewMode(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
  {
    _TDispID _dispid(/* IsPreviewMode */ DISPID(121));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall get_IsPreviewMode()
  {
    _TDispID _dispid(/* IsPreviewMode */ DISPID(121));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_HyperlinkMode(long /*[VT_I4:0]*/ Value)
  {
    _TDispID _dispid(/* HyperlinkMode */ DISPID(78));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  long /*[VT_I4:0]*/ __fastcall get_HyperlinkMode()
  {
    _TDispID _dispid(/* HyperlinkMode */ DISPID(78));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_ScrollPosInfo(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* ScrollPosInfo */ DISPID(73));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_ScrollPosInfo()
  {
    _TDispID _dispid(/* ScrollPosInfo */ DISPID(73));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_EngineProperties(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* EngineProperties */ DISPID(72));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_EngineProperties()
  {
    _TDispID _dispid(/* EngineProperties */ DISPID(72));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_AutoShowHideToolBar(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
  {
    _TDispID _dispid(/* AutoShowHideToolBar */ DISPID(71));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall get_AutoShowHideToolBar()
  {
    _TDispID _dispid(/* AutoShowHideToolBar */ DISPID(71));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_EditMode(long /*[VT_I4:0]*/ Value)
  {
    _TDispID _dispid(/* EditMode */ DISPID(56));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  long /*[VT_I4:0]*/ __fastcall get_EditMode()
  {
    _TDispID _dispid(/* EditMode */ DISPID(56));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_SelectionMode(short /*[VT_I2:0]*/ Value)
  {
    _TDispID _dispid(/* SelectionMode */ DISPID(15));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  short /*[VT_I2:0]*/ __fastcall get_SelectionMode()
  {
    _TDispID _dispid(/* SelectionMode */ DISPID(15));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_ReadOnlyMode(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
  {
    _TDispID _dispid(/* ReadOnlyMode */ DISPID(14));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall get_ReadOnlyMode()
  {
    _TDispID _dispid(/* ReadOnlyMode */ DISPID(14));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_CurFieldState(long /*[VT_I4:0]*/ Value)
  {
    _TDispID _dispid(/* CurFieldState */ DISPID(13));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  long /*[VT_I4:0]*/ __fastcall get_CurFieldState()
  {
    _TDispID _dispid(/* CurFieldState */ DISPID(13));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_Version(long /*[VT_I4:0]*/ Value)
  {
    _TDispID _dispid(/* Version */ DISPID(12));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  long /*[VT_I4:0]*/ __fastcall get_Version()
  {
    _TDispID _dispid(/* Version */ DISPID(12));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_ViewProperties(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* ViewProperties */ DISPID(11));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_ViewProperties()
  {
    _TDispID _dispid(/* ViewProperties */ DISPID(11));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_Path(BSTR /*[VT_BSTR:0]*/ Value)
  {
    _TDispID _dispid(/* Path */ DISPID(10));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  BSTR /*[VT_BSTR:0]*/ __fastcall get_Path()
  {
    _TDispID _dispid(/* Path */ DISPID(10));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_ParentCtrl(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* ParentCtrl */ DISPID(9));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_ParentCtrl()
  {
    _TDispID _dispid(/* ParentCtrl */ DISPID(9));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_ParaShape(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* ParaShape */ DISPID(8));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_ParaShape()
  {
    _TDispID _dispid(/* ParaShape */ DISPID(8));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_PageCount(long /*[VT_I4:0]*/ Value)
  {
    _TDispID _dispid(/* PageCount */ DISPID(7));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  long /*[VT_I4:0]*/ __fastcall get_PageCount()
  {
    _TDispID _dispid(/* PageCount */ DISPID(7));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_LastCtrl(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* LastCtrl */ DISPID(6));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_LastCtrl()
  {
    _TDispID _dispid(/* LastCtrl */ DISPID(6));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_IsModified(short /*[VT_I2:0]*/ Value)
  {
    _TDispID _dispid(/* IsModified */ DISPID(5));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  short /*[VT_I2:0]*/ __fastcall get_IsModified()
  {
    _TDispID _dispid(/* IsModified */ DISPID(5));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_IsEmpty(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
  {
    _TDispID _dispid(/* IsEmpty */ DISPID(4));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall get_IsEmpty()
  {
    _TDispID _dispid(/* IsEmpty */ DISPID(4));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_HeadCtrl(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* HeadCtrl */ DISPID(3));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_HeadCtrl()
  {
    _TDispID _dispid(/* HeadCtrl */ DISPID(3));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_CharShape(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* CharShape */ DISPID(2));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_CharShape()
  {
    _TDispID _dispid(/* CharShape */ DISPID(2));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_CellShape(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* CellShape */ DISPID(1));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_CellShape()
  {
    _TDispID _dispid(/* CellShape */ DISPID(1));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }


  __property   LPDISPATCH      XHwpDocuments = {read = get_XHwpDocuments, write = set_XHwpDocuments};
  __property   VARIANT_BOOL    IsPreviewMode = {read = get_IsPreviewMode, write = set_IsPreviewMode};
  __property   long            HyperlinkMode = {read = get_HyperlinkMode, write = set_HyperlinkMode};
  __property   LPDISPATCH      ScrollPosInfo = {read = get_ScrollPosInfo, write = set_ScrollPosInfo};
  __property   LPDISPATCH      EngineProperties = {read = get_EngineProperties, write = set_EngineProperties};
  __property   VARIANT_BOOL    AutoShowHideToolBar = {read = get_AutoShowHideToolBar, write = set_AutoShowHideToolBar};
  __property   long            EditMode = {read = get_EditMode, write = set_EditMode};
  __property   short           SelectionMode = {read = get_SelectionMode, write = set_SelectionMode};
  __property   VARIANT_BOOL    ReadOnlyMode = {read = get_ReadOnlyMode, write = set_ReadOnlyMode};
  __property   long            CurFieldState = {read = get_CurFieldState, write = set_CurFieldState};
  __property   long            Version = {read = get_Version, write = set_Version};
  __property   LPDISPATCH      ViewProperties = {read = get_ViewProperties, write = set_ViewProperties};
  __property   BSTR            Path = {read = get_Path, write = set_Path};
  __property   LPDISPATCH      ParentCtrl = {read = get_ParentCtrl, write = set_ParentCtrl};
  __property   LPDISPATCH      ParaShape = {read = get_ParaShape, write = set_ParaShape};
  __property   long            PageCount = {read = get_PageCount, write = set_PageCount};
  __property   LPDISPATCH      LastCtrl = {read = get_LastCtrl, write = set_LastCtrl};
  __property   short           IsModified = {read = get_IsModified, write = set_IsModified};
  __property   VARIANT_BOOL    IsEmpty = {read = get_IsEmpty, write = set_IsEmpty};
  __property   LPDISPATCH      HeadCtrl = {read = get_HeadCtrl, write = set_HeadCtrl};
  __property   LPDISPATCH      CharShape = {read = get_CharShape, write = set_CharShape};
  __property   LPDISPATCH      CellShape = {read = get_CellShape, write = set_CellShape};
};
// *********************************************************************//
// Interface: _DHwpCtrlEvents
// Flags:     (4096) Dispatchable
// GUID:      {402995CB-FF79-4467-B7D1-4FFA32592B21}
// *********************************************************************//
interface _DHwpCtrlEvents : public TDispWrapper<IDispatch>
{
  void __fastcall NotifyMessage(BSTR Msg, long WParam, long LParam)
  {
    _TDispID _dispid(/* NotifyMessage */ DISPID(1));
    TAutoArgs<3> _args;
    _args[1] = Msg /*[VT_BSTR:0]*/;
    _args[2] = WParam /*[VT_I4:0]*/;
    _args[3] = LParam /*[VT_I4:0]*/;
    OleProcedure(_dispid, _args);
  }

  void __fastcall OnMouseLButtonDown(long x, long y)
  {
    _TDispID _dispid(/* OnMouseLButtonDown */ DISPID(2));
    TAutoArgs<2> _args;
    _args[1] = x /*[VT_I4:0]*/;
    _args[2] = y /*[VT_I4:0]*/;
    OleProcedure(_dispid, _args);
  }

  void __fastcall OnScroll(long WParam, long LParam)
  {
    _TDispID _dispid(/* OnScroll */ DISPID(3));
    TAutoArgs<2> _args;
    _args[1] = WParam /*[VT_I4:0]*/;
    _args[2] = LParam /*[VT_I4:0]*/;
    OleProcedure(_dispid, _args);
  }


};
// *********************************************************************//
// Interface: DHwpAction
// Flags:     (4096) Dispatchable
// GUID:      {5227AA3C-8332-4F0A-9B82-D7D89A5CF395}
// *********************************************************************//
interface DHwpAction : public TDispWrapper<IDispatch>
{
  long __fastcall Execute(LPDISPATCH param)
  {
    _TDispID _dispid(/* Execute */ DISPID(4));
    TAutoArgs<1> _args;
    _args[1] = param /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall CreateSet()
  {
    _TDispID _dispid(/* CreateSet */ DISPID(3));
    TAutoArgs<0> _args;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall Run()
  {
    _TDispID _dispid(/* Run */ DISPID(7));
    OleProcedure(_dispid);
  }

  long __fastcall GetDefault(LPDISPATCH param)
  {
    _TDispID _dispid(/* GetDefault */ DISPID(5));
    TAutoArgs<1> _args;
    _args[1] = param /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  long __fastcall PopupDialog(LPDISPATCH param)
  {
    _TDispID _dispid(/* PopupDialog */ DISPID(6));
    TAutoArgs<1> _args;
    _args[1] = param /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_setid(BSTR /*[VT_BSTR:0]*/ Value)
  {
    _TDispID _dispid(/* setid */ DISPID(2));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  BSTR /*[VT_BSTR:0]*/ __fastcall get_setid()
  {
    _TDispID _dispid(/* setid */ DISPID(2));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_actid(BSTR /*[VT_BSTR:0]*/ Value)
  {
    _TDispID _dispid(/* actid */ DISPID(1));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  BSTR /*[VT_BSTR:0]*/ __fastcall get_actid()
  {
    _TDispID _dispid(/* actid */ DISPID(1));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }


  __property   BSTR            setid = {read = get_setid, write = set_setid};
  __property   BSTR            actid = {read = get_actid, write = set_actid};
};
// *********************************************************************//
// Interface: DHwpParameterSet
// Flags:     (4096) Dispatchable
// GUID:      {E5BBBA9F-732F-450D-8433-1B7AA4F60503}
// *********************************************************************//
interface DHwpParameterSet : public TDispWrapper<IDispatch>
{
  LPDISPATCH __fastcall CreateItemArray(BSTR itemid, long Count)
  {
    _TDispID _dispid(/* CreateItemArray */ DISPID(5));
    TAutoArgs<2> _args;
    _args[1] = itemid /*[VT_BSTR:0]*/;
    _args[2] = Count /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall RemoveAll(BSTR setid)
  {
    _TDispID _dispid(/* RemoveAll */ DISPID(12));
    TAutoArgs<1> _args;
    _args[1] = setid /*[VT_BSTR:0]*/;
    OleProcedure(_dispid, _args);
  }

  LPDISPATCH __fastcall Clone()
  {
    _TDispID _dispid(/* Clone */ DISPID(4));
    TAutoArgs<0> _args;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  LPDISPATCH __fastcall CreateItemSet(BSTR itemid, BSTR setid)
  {
    _TDispID _dispid(/* CreateItemSet */ DISPID(6));
    TAutoArgs<2> _args;
    _args[1] = itemid /*[VT_BSTR:0]*/;
    _args[2] = setid /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall GetIntersection(LPDISPATCH srcset)
  {
    _TDispID _dispid(/* GetIntersection */ DISPID(7));
    TAutoArgs<1> _args;
    _args[1] = srcset /*[VT_DISPATCH:0]*/;
    OleProcedure(_dispid, _args);
  }

  void __fastcall RemoveItem(BSTR itemid)
  {
    _TDispID _dispid(/* RemoveItem */ DISPID(13));
    TAutoArgs<1> _args;
    _args[1] = itemid /*[VT_BSTR:0]*/;
    OleProcedure(_dispid, _args);
  }

  VARIANT __fastcall Item(BSTR itemid)
  {
    _TDispID _dispid(/* Item */ DISPID(9));
    TAutoArgs<1> _args;
    _args[1] = itemid /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall ItemExist(BSTR itemid)
  {
    _TDispID _dispid(/* ItemExist */ DISPID(10));
    TAutoArgs<1> _args;
    _args[1] = itemid /*[VT_BSTR:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  VARIANT_BOOL __fastcall IsEquivalent(LPDISPATCH srcset)
  {
    _TDispID _dispid(/* IsEquivalent */ DISPID(8));
    TAutoArgs<1> _args;
    _args[1] = srcset /*[VT_DISPATCH:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall SetItem(BSTR itemid, VARIANT value)
  {
    _TDispID _dispid(/* SetItem */ DISPID(14));
    TAutoArgs<2> _args;
    _args[1] = itemid /*[VT_BSTR:0]*/;
    _args[2] = value /*[VT_VARIANT:0]*/;
    OleProcedure(_dispid, _args);
  }

  void __fastcall Merge(LPDISPATCH srcset)
  {
    _TDispID _dispid(/* Merge */ DISPID(11));
    TAutoArgs<1> _args;
    _args[1] = srcset /*[VT_DISPATCH:0]*/;
    OleProcedure(_dispid, _args);
  }

  void __fastcall set_setid(BSTR /*[VT_BSTR:0]*/ Value)
  {
    _TDispID _dispid(/* setid */ DISPID(3));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  BSTR /*[VT_BSTR:0]*/ __fastcall get_setid()
  {
    _TDispID _dispid(/* setid */ DISPID(3));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_IsSet(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
  {
    _TDispID _dispid(/* IsSet */ DISPID(2));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall get_IsSet()
  {
    _TDispID _dispid(/* IsSet */ DISPID(2));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_Count(long /*[VT_I4:0]*/ Value)
  {
    _TDispID _dispid(/* Count */ DISPID(1));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  long /*[VT_I4:0]*/ __fastcall get_Count()
  {
    _TDispID _dispid(/* Count */ DISPID(1));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }


  __property   BSTR            setid = {read = get_setid, write = set_setid};
  __property   VARIANT_BOOL    IsSet = {read = get_IsSet, write = set_IsSet};
  __property   long            Count = {read = get_Count, write = set_Count};
};
// *********************************************************************//
// Interface: DHwpParameterArray
// Flags:     (4096) Dispatchable
// GUID:      {E35C1FFB-BAD5-44B7-A8F2-7B598123C2FC}
// *********************************************************************//
interface DHwpParameterArray : public TDispWrapper<IDispatch>
{
  void __fastcall SetItem(long index, VARIANT value)
  {
    _TDispID _dispid(/* SetItem */ DISPID(6));
    TAutoArgs<2> _args;
    _args[1] = index /*[VT_I4:0]*/;
    _args[2] = value /*[VT_VARIANT:0]*/;
    OleProcedure(_dispid, _args);
  }

  LPDISPATCH __fastcall Clone()
  {
    _TDispID _dispid(/* Clone */ DISPID(3));
    TAutoArgs<0> _args;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall Copy(LPDISPATCH srcarray)
  {
    _TDispID _dispid(/* Copy */ DISPID(4));
    TAutoArgs<1> _args;
    _args[1] = srcarray /*[VT_DISPATCH:0]*/;
    OleProcedure(_dispid, _args);
  }

  VARIANT __fastcall Item(long index)
  {
    _TDispID _dispid(/* Item */ DISPID(5));
    TAutoArgs<1> _args;
    _args[1] = index /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_IsSet(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
  {
    _TDispID _dispid(/* IsSet */ DISPID(2));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall get_IsSet()
  {
    _TDispID _dispid(/* IsSet */ DISPID(2));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_Count(long /*[VT_I4:0]*/ Value)
  {
    _TDispID _dispid(/* Count */ DISPID(1));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  long /*[VT_I4:0]*/ __fastcall get_Count()
  {
    _TDispID _dispid(/* Count */ DISPID(1));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }


  __property   VARIANT_BOOL    IsSet = {read = get_IsSet, write = set_IsSet};
  __property   long            Count = {read = get_Count, write = set_Count};
};
// *********************************************************************//
// Interface: DHwpCtrlCode
// Flags:     (4096) Dispatchable
// GUID:      {39E84D56-02DA-4AB0-B0C9-4F8AD94E3DF6}
// *********************************************************************//
interface DHwpCtrlCode : public TDispWrapper<IDispatch>
{
  LPDISPATCH __fastcall GetAnchorPos(long type)
  {
    _TDispID _dispid(/* GetAnchorPos */ DISPID(15001));
    TAutoArgs<1> _args;
    _args[1] = type /*[VT_I4:0]*/;
    OleFunction(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_CtrlCh(short /*[VT_I2:0]*/ Value)
  {
    _TDispID _dispid(/* CtrlCh */ DISPID(1));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  short /*[VT_I2:0]*/ __fastcall get_CtrlCh()
  {
    _TDispID _dispid(/* CtrlCh */ DISPID(1));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_ctrlid(BSTR /*[VT_BSTR:0]*/ Value)
  {
    _TDispID _dispid(/* ctrlid */ DISPID(2));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  BSTR /*[VT_BSTR:0]*/ __fastcall get_ctrlid()
  {
    _TDispID _dispid(/* ctrlid */ DISPID(2));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_Next(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* Next */ DISPID(3));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_Next()
  {
    _TDispID _dispid(/* Next */ DISPID(3));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_Properties(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* Properties */ DISPID(5));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_Properties()
  {
    _TDispID _dispid(/* Properties */ DISPID(5));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_UserDesc(BSTR /*[VT_BSTR:0]*/ Value)
  {
    _TDispID _dispid(/* UserDesc */ DISPID(6));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  BSTR /*[VT_BSTR:0]*/ __fastcall get_UserDesc()
  {
    _TDispID _dispid(/* UserDesc */ DISPID(6));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }

  void __fastcall set_Prev(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
  {
    _TDispID _dispid(/* Prev */ DISPID(4));
    TAutoArgs<1> _args;
    _args[1] = Value;
    OlePropertyPut(_dispid, _args);
  }

  LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall get_Prev()
  {
    _TDispID _dispid(/* Prev */ DISPID(4));
    TAutoArgs<0> _args;
    OlePropertyGet(_dispid, _args);
    return _args.GetRetVariant();
  }


  __property   short           CtrlCh = {read = get_CtrlCh, write = set_CtrlCh};
  __property   BSTR            ctrlid = {read = get_ctrlid, write = set_ctrlid};
  __property   LPDISPATCH      Next = {read = get_Next, write = set_Next};
  __property   LPDISPATCH      Properties = {read = get_Properties, write = set_Properties};
  __property   BSTR            UserDesc = {read = get_UserDesc, write = set_UserDesc};
  __property   LPDISPATCH      Prev = {read = get_Prev, write = set_Prev};
};
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// DispIntf:  _DHwpCtrl
// Flags:     (4112) Hidden Dispatchable
// GUID:      {377C0BC8-E22C-45ED-851A-FBA0208DDC23}
// *********************************************************************//
template<class T>
class _DHwpCtrlDispT : public TAutoDriver<_DHwpCtrl>
{
public:
  _DHwpCtrlDispT(){}

  _DHwpCtrlDispT(_DHwpCtrl *pintf)
  {
    TAutoDriver<_DHwpCtrl>::Bind(pintf, false);
  }

  _DHwpCtrlDispT(_DHwpCtrlPtr pintf)
  {
    TAutoDriver<_DHwpCtrl>::Bind(pintf, true);
  }

  _DHwpCtrlDispT& operator=(_DHwpCtrl *pintf)
  {
    TAutoDriver<_DHwpCtrl>::Bind(pintf, false);
    return *this;
  }

  _DHwpCtrlDispT& operator=(_DHwpCtrlPtr pintf)
  {
    TAutoDriver<_DHwpCtrl>::Bind(pintf, true);
    return *this;
  }

  HRESULT BindDefault()
  {
    return OLECHECK(Bind(CLSID_HwpCtrl));
  }

  HRESULT BindRunning()
  {
    return BindToActive(CLSID_HwpCtrl);
  }

  LPDISPATCH      __fastcall InsertCtrl(BSTR ctrlid, VARIANT initparam/*[opt]*/= TNoParam());
  void            __fastcall PutFieldText(BSTR fieldlist, BSTR textlist);
  VARIANT_BOOL    __fastcall MoveToField(BSTR field, VARIANT text/*[opt]*/= TNoParam(), 
                                         VARIANT start/*[opt]*/= TNoParam(), 
                                         VARIANT select/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall InitScan(VARIANT option/*[opt]*/= TNoParam(), 
                                      VARIANT range/*[opt]*/= TNoParam(), 
                                      VARIANT spara/*[opt]*/= TNoParam(), 
                                      VARIANT spos/*[opt]*/= TNoParam(), 
                                      VARIANT epara/*[opt]*/= TNoParam(), 
                                      VARIANT epos/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall Open(BSTR Path, VARIANT format/*[opt]*/= TNoParam(), 
                                  VARIANT arg/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall Insert(BSTR Path, VARIANT format/*[opt]*/= TNoParam(), 
                                    VARIANT arg/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall CreatePageImage(BSTR Path, VARIANT pgno/*[opt]*/= TNoParam(), 
                                             VARIANT resolution/*[opt]*/= TNoParam(), 
                                             VARIANT depth/*[opt]*/= TNoParam(), 
                                             VARIANT format/*[opt]*/= TNoParam());
  void            __fastcall RenameField(BSTR oldname, BSTR newname);
  VARIANT_BOOL    __fastcall Save(VARIANT save_if_dirty/*[opt]*/= TNoParam());
  void            __fastcall Run(BSTR actid);
  VARIANT_BOOL    __fastcall GetSelectedPosBySet(LPDISPATCH sset, LPDISPATCH eset);
  LPDISPATCH      __fastcall MakeVersionDiffAll(VARIANT filepath/*[opt]*/= TNoParam());
  VARIANT         __fastcall GetFormObjectAttr(BSTR formname, BSTR attrname);
  VARIANT_BOOL    __fastcall MoveToFieldEx(BSTR field, VARIANT text/*[opt]*/= TNoParam(), 
                                           VARIANT start/*[opt]*/= TNoParam(), 
                                           VARIANT select/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall SetAutoSave(BSTR FileName, long saveinterval);
  VARIANT_BOOL    __fastcall VersionSave(BSTR filepath, long overwirte, long infolock, 
                                         VARIANT writer/*[opt]*/= TNoParam(), 
                                         VARIANT description/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall VersionDelete(long index);
  long            __fastcall GetTableCellAddr(long type);
  LPDISPATCH      __fastcall GetVersionInfo(long index);
  long            __fastcall GetVersionHistoryCount();
  LPDISPATCH      __fastcall CreateAction(BSTR actid);
  VARIANT_BOOL    __fastcall SaveDocument(BSTR szFileName, BSTR szFileType);
  VARIANT_BOOL    __fastcall OpenDocument(BSTR szFileName, BSTR szFileType);
  LPDISPATCH      __fastcall InsertPicture(BSTR Path, VARIANT embedded/*[opt]*/= TNoParam(), 
                                           VARIANT sizeOption/*[opt]*/= TNoParam(), 
                                           VARIANT reverse/*[opt]*/= TNoParam(), 
                                           VARIANT watermark/*[opt]*/= TNoParam(), 
                                           VARIANT effect/*[opt]*/= TNoParam(), 
                                           VARIANT width/*[opt]*/= TNoParam(), 
                                           VARIANT height/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall SetCurFieldName(BSTR fieldname, VARIANT option/*[opt]*/= TNoParam(), 
                                             VARIANT direction/*[opt]*/= TNoParam(), 
                                             VARIANT memo/*[opt]*/= TNoParam());
  BSTR            __fastcall GetCurFieldName(VARIANT option/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall SetToolBar(long lToolBarID, VARIANT varID);
  VARIANT_BOOL    __fastcall PrintDocument();
  VARIANT_BOOL    __fastcall ShowToolBar(long bShow);
  VARIANT_BOOL    __fastcall SaveAs(BSTR Path, VARIANT format/*[opt]*/= TNoParam(), 
                                    VARIANT arg/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall InsertDocument(BSTR szFileName);
  BSTR            __fastcall GetFieldList(VARIANT number/*[opt]*/= TNoParam(), 
                                          VARIANT option/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall FieldExist(BSTR field);
  BSTR            __fastcall GetFieldText(BSTR fieldlist);
  void            __fastcall Clear(VARIANT option/*[opt]*/= TNoParam());
  LPDISPATCH      __fastcall CreateSet(BSTR setid);
  VARIANT_BOOL    __fastcall SelectText(long spara, long spos, long epara, long epos);
  VARIANT_BOOL    __fastcall DeleteCtrl(LPDISPATCH ctrl);
  VARIANT_BOOL    __fastcall CreateField(BSTR direction, VARIANT memo/*[opt]*/= TNoParam(), 
                                         VARIANT name/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall MovePos(VARIANT moveID/*[opt]*/= TNoParam(), 
                                     VARIANT para/*[opt]*/= TNoParam(), 
                                     VARIANT pos/*[opt]*/= TNoParam());
  void            __fastcall SetClientName(BSTR szClient);
  VARIANT_BOOL    __fastcall GetSelectedPos(long* slist, long* spara, long* spos, long* elist, 
                                            long* epara, long* epos);
  VARIANT_BOOL    __fastcall IsCommandLock(BSTR actionID);
  VARIANT_BOOL    __fastcall GetFilterList(BSTR* szfilterlist, VARIANT flags);
  VARIANT_BOOL    __fastcall ReplaceAction(BSTR OldActionID, BSTR NewActionID);
  BSTR            __fastcall SaveState(BSTR FileName);
  VARIANT_BOOL    __fastcall LoadState(BSTR FileName);
  void            __fastcall LockCommand(BSTR actionID, long lock);
  VARIANT_BOOL    __fastcall SetPos(long list, long para, long pos);
  void            __fastcall ReleaseScan();
  void            __fastcall GetPos(long* list, long* para, long* pos);
  long            __fastcall GetText(BSTR* text);
  VARIANT         __fastcall InsertBackgroundPicture(BSTR bordertype, BSTR Path, 
                                                     VARIANT embedded/*[opt]*/= TNoParam(), 
                                                     VARIANT filloption/*[opt]*/= TNoParam(), 
                                                     VARIANT watermark/*[opt]*/= TNoParam(), 
                                                     VARIANT effect/*[opt]*/= TNoParam(), 
                                                     VARIANT brightness/*[opt]*/= TNoParam(), 
                                                     VARIANT contrast/*[opt]*/= TNoParam());
  long            __fastcall SetFieldViewOption(long option);
  VARIANT_BOOL    __fastcall ShowStatusBar(long Show);
  long            __fastcall SetTextFile(VARIANT data, BSTR format, BSTR option);
  LPDISPATCH      __fastcall GetMousePos(long Xrelto, long Yrelto);
  LPDISPATCH      __fastcall GetViewStatus(long nType);
  VARIANT_BOOL    __fastcall RegisterModule(BSTR ModuleType, VARIANT ModuleData);
  LPDISPATCH      __fastcall GetMessageSet();
  VARIANT         __fastcall GetTextFile(BSTR format, BSTR option);
  LPDISPATCH      __fastcall GetFileInfo(BSTR FileName);
  LPDISPATCH      __fastcall GetPosBySet();
  long            __fastcall ConvertPUAHangulToUnicode(VARIANT reverse/*[opt]*/= TNoParam());
  void            __fastcall AboutBox();
  BSTR            __fastcall GetBinDataPath(long binid);
  VARIANT_BOOL    __fastcall InsertMenu(BSTR menuidx, BSTR menustr, BSTR actionstr, long menutype);
  long            __fastcall GetMessageBoxMode();
  VARIANT_BOOL    __fastcall SetFormObjectAttr(BSTR formname, BSTR attrname, VARIANT value);
  VARIANT_BOOL    __fastcall PreviewCommand(long previewmode);
  VARIANT_BOOL    __fastcall ImportStyle(LPDISPATCH styleset);
  long            __fastcall SetMessageBoxMode(long mode);
  VARIANT_BOOL    __fastcall ExportStyle(LPDISPATCH styleset);
  VARIANT_BOOL    __fastcall GetActionCmdUIStatus(BSTR actid, long bWithKey, long* bEnabled, 
                                                  long* bChecked, long* bRadio, BSTR* szText);
  long            __fastcall ModifyFieldProperties(BSTR field, long remove, long add);
  VARIANT_BOOL    __fastcall KeyIndicator(long* seccnt, long* secno, long* prnpageno, long* colno, 
                                          long* line, long* pos, short* over, BSTR* ctrlname);
  VARIANT_BOOL    __fastcall SetPosBySet(LPDISPATCH pos);
  long            __fastcall GetTextBySet(LPDISPATCH text);
  BSTR            __fastcall GetScriptSource(BSTR filepath);
  VARIANT_BOOL    __fastcall RunScriptMacro(BSTR FunctionName, long uMacroType, long uScriptType);
  VARIANT_BOOL    __fastcall SetBarCodeImage(BSTR lpImagePath, long pgno, long index, long x, long y
                                             , VARIANT width/*[opt]*/= TNoParam(), 
                                             VARIANT height/*[opt]*/= TNoParam());
  VARIANT_BOOL    __fastcall RemoveMenu(BSTR menuidx, long menutype);
  BSTR            __fastcall GetPageText(long pgno, VARIANT option/*[opt]*/= TNoParam());
  void            __fastcall set_XHwpDocuments(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_XHwpDocuments();
  void            __fastcall set_IsPreviewMode(VARIANT_BOOL Value);
  VARIANT_BOOL    __fastcall get_IsPreviewMode();
  void            __fastcall set_HyperlinkMode(long Value);
  long            __fastcall get_HyperlinkMode();
  void            __fastcall set_ScrollPosInfo(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_ScrollPosInfo();
  void            __fastcall set_EngineProperties(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_EngineProperties();
  void            __fastcall set_AutoShowHideToolBar(VARIANT_BOOL Value);
  VARIANT_BOOL    __fastcall get_AutoShowHideToolBar();
  void            __fastcall set_EditMode(long Value);
  long            __fastcall get_EditMode();
  void            __fastcall set_SelectionMode(short Value);
  short           __fastcall get_SelectionMode();
  void            __fastcall set_ReadOnlyMode(VARIANT_BOOL Value);
  VARIANT_BOOL    __fastcall get_ReadOnlyMode();
  void            __fastcall set_CurFieldState(long Value);
  long            __fastcall get_CurFieldState();
  void            __fastcall set_Version(long Value);
  long            __fastcall get_Version();
  void            __fastcall set_ViewProperties(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_ViewProperties();
  void            __fastcall set_Path(BSTR Value);
  BSTR            __fastcall get_Path();
  void            __fastcall set_ParentCtrl(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_ParentCtrl();
  void            __fastcall set_ParaShape(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_ParaShape();
  void            __fastcall set_PageCount(long Value);
  long            __fastcall get_PageCount();
  void            __fastcall set_LastCtrl(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_LastCtrl();
  void            __fastcall set_IsModified(short Value);
  short           __fastcall get_IsModified();
  void            __fastcall set_IsEmpty(VARIANT_BOOL Value);
  VARIANT_BOOL    __fastcall get_IsEmpty();
  void            __fastcall set_HeadCtrl(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_HeadCtrl();
  void            __fastcall set_CharShape(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_CharShape();
  void            __fastcall set_CellShape(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_CellShape();

  __property   LPDISPATCH      XHwpDocuments = {read = get_XHwpDocuments, write = set_XHwpDocuments};
  __property   VARIANT_BOOL    IsPreviewMode = {read = get_IsPreviewMode, write = set_IsPreviewMode};
  __property   long            HyperlinkMode = {read = get_HyperlinkMode, write = set_HyperlinkMode};
  __property   LPDISPATCH      ScrollPosInfo = {read = get_ScrollPosInfo, write = set_ScrollPosInfo};
  __property   LPDISPATCH      EngineProperties = {read = get_EngineProperties, write = set_EngineProperties};
  __property   VARIANT_BOOL    AutoShowHideToolBar = {read = get_AutoShowHideToolBar, write = set_AutoShowHideToolBar};
  __property   long            EditMode = {read = get_EditMode, write = set_EditMode};
  __property   short           SelectionMode = {read = get_SelectionMode, write = set_SelectionMode};
  __property   VARIANT_BOOL    ReadOnlyMode = {read = get_ReadOnlyMode, write = set_ReadOnlyMode};
  __property   long            CurFieldState = {read = get_CurFieldState, write = set_CurFieldState};
  __property   long            Version = {read = get_Version, write = set_Version};
  __property   LPDISPATCH      ViewProperties = {read = get_ViewProperties, write = set_ViewProperties};
  __property   BSTR            Path = {read = get_Path, write = set_Path};
  __property   LPDISPATCH      ParentCtrl = {read = get_ParentCtrl, write = set_ParentCtrl};
  __property   LPDISPATCH      ParaShape = {read = get_ParaShape, write = set_ParaShape};
  __property   long            PageCount = {read = get_PageCount, write = set_PageCount};
  __property   LPDISPATCH      LastCtrl = {read = get_LastCtrl, write = set_LastCtrl};
  __property   short           IsModified = {read = get_IsModified, write = set_IsModified};
  __property   VARIANT_BOOL    IsEmpty = {read = get_IsEmpty, write = set_IsEmpty};
  __property   LPDISPATCH      HeadCtrl = {read = get_HeadCtrl, write = set_HeadCtrl};
  __property   LPDISPATCH      CharShape = {read = get_CharShape, write = set_CharShape};
  __property   LPDISPATCH      CellShape = {read = get_CellShape, write = set_CellShape};
};
typedef _DHwpCtrlDispT<_DHwpCtrl> _DHwpCtrlDisp;

// *********************************************************************//
// DispIntf:  _DHwpCtrlEvents
// Flags:     (4096) Dispatchable
// GUID:      {402995CB-FF79-4467-B7D1-4FFA32592B21}
// *********************************************************************//
template <class T>
class _DHwpCtrlEventsDispT : public TAutoDriver<_DHwpCtrlEvents>
{
public:
  _DHwpCtrlEventsDispT(){}

  void Attach(LPUNKNOWN punk)
  { m_Dispatch = static_cast<T*>(punk); }

  void            __fastcall NotifyMessage(BSTR Msg, long WParam, long LParam);
  void            __fastcall OnMouseLButtonDown(long x, long y);
  void            __fastcall OnScroll(long WParam, long LParam);

};
typedef _DHwpCtrlEventsDispT<_DHwpCtrlEvents> _DHwpCtrlEventsDisp;

// *********************************************************************//
// DispIntf:  DHwpAction
// Flags:     (4096) Dispatchable
// GUID:      {5227AA3C-8332-4F0A-9B82-D7D89A5CF395}
// *********************************************************************//
template<class T>
class DHwpActionDispT : public TAutoDriver<DHwpAction>
{
public:
  DHwpActionDispT(){}

  DHwpActionDispT(DHwpAction *pintf)
  {
    TAutoDriver<DHwpAction>::Bind(pintf, false);
  }

  DHwpActionDispT(DHwpActionPtr pintf)
  {
    TAutoDriver<DHwpAction>::Bind(pintf, true);
  }

  DHwpActionDispT& operator=(DHwpAction *pintf)
  {
    TAutoDriver<DHwpAction>::Bind(pintf, false);
    return *this;
  }

  DHwpActionDispT& operator=(DHwpActionPtr pintf)
  {
    TAutoDriver<DHwpAction>::Bind(pintf, true);
    return *this;
  }

  HRESULT BindDefault()
  {
    return OLECHECK(Bind(CLSID_HwpAction));
  }

  HRESULT BindRunning()
  {
    return BindToActive(CLSID_HwpAction);
  }

  long            __fastcall Execute(LPDISPATCH param);
  LPDISPATCH      __fastcall CreateSet();
  void            __fastcall Run();
  long            __fastcall GetDefault(LPDISPATCH param);
  long            __fastcall PopupDialog(LPDISPATCH param);
  void            __fastcall set_setid(BSTR Value);
  BSTR            __fastcall get_setid();
  void            __fastcall set_actid(BSTR Value);
  BSTR            __fastcall get_actid();

  __property   BSTR            setid = {read = get_setid, write = set_setid};
  __property   BSTR            actid = {read = get_actid, write = set_actid};
};
typedef DHwpActionDispT<DHwpAction> DHwpActionDisp;

// *********************************************************************//
// DispIntf:  DHwpParameterSet
// Flags:     (4096) Dispatchable
// GUID:      {E5BBBA9F-732F-450D-8433-1B7AA4F60503}
// *********************************************************************//
template<class T>
class DHwpParameterSetDispT : public TAutoDriver<DHwpParameterSet>
{
public:
  DHwpParameterSetDispT(){}

  DHwpParameterSetDispT(DHwpParameterSet *pintf)
  {
    TAutoDriver<DHwpParameterSet>::Bind(pintf, false);
  }

  DHwpParameterSetDispT(DHwpParameterSetPtr pintf)
  {
    TAutoDriver<DHwpParameterSet>::Bind(pintf, true);
  }

  DHwpParameterSetDispT& operator=(DHwpParameterSet *pintf)
  {
    TAutoDriver<DHwpParameterSet>::Bind(pintf, false);
    return *this;
  }

  DHwpParameterSetDispT& operator=(DHwpParameterSetPtr pintf)
  {
    TAutoDriver<DHwpParameterSet>::Bind(pintf, true);
    return *this;
  }

  HRESULT BindDefault()
  {
    return OLECHECK(Bind(CLSID_HwpParameterSet));
  }

  HRESULT BindRunning()
  {
    return BindToActive(CLSID_HwpParameterSet);
  }

  LPDISPATCH      __fastcall CreateItemArray(BSTR itemid, long Count);
  void            __fastcall RemoveAll(BSTR setid);
  LPDISPATCH      __fastcall Clone();
  LPDISPATCH      __fastcall CreateItemSet(BSTR itemid, BSTR setid);
  void            __fastcall GetIntersection(LPDISPATCH srcset);
  void            __fastcall RemoveItem(BSTR itemid);
  VARIANT         __fastcall Item(BSTR itemid);
  VARIANT_BOOL    __fastcall ItemExist(BSTR itemid);
  VARIANT_BOOL    __fastcall IsEquivalent(LPDISPATCH srcset);
  void            __fastcall SetItem(BSTR itemid, VARIANT value);
  void            __fastcall Merge(LPDISPATCH srcset);
  void            __fastcall set_setid(BSTR Value);
  BSTR            __fastcall get_setid();
  void            __fastcall set_IsSet(VARIANT_BOOL Value);
  VARIANT_BOOL    __fastcall get_IsSet();
  void            __fastcall set_Count(long Value);
  long            __fastcall get_Count();

  __property   BSTR            setid = {read = get_setid, write = set_setid};
  __property   VARIANT_BOOL    IsSet = {read = get_IsSet, write = set_IsSet};
  __property   long            Count = {read = get_Count, write = set_Count};
};
typedef DHwpParameterSetDispT<DHwpParameterSet> DHwpParameterSetDisp;

// *********************************************************************//
// DispIntf:  DHwpParameterArray
// Flags:     (4096) Dispatchable
// GUID:      {E35C1FFB-BAD5-44B7-A8F2-7B598123C2FC}
// *********************************************************************//
template<class T>
class DHwpParameterArrayDispT : public TAutoDriver<DHwpParameterArray>
{
public:
  DHwpParameterArrayDispT(){}

  DHwpParameterArrayDispT(DHwpParameterArray *pintf)
  {
    TAutoDriver<DHwpParameterArray>::Bind(pintf, false);
  }

  DHwpParameterArrayDispT(DHwpParameterArrayPtr pintf)
  {
    TAutoDriver<DHwpParameterArray>::Bind(pintf, true);
  }

  DHwpParameterArrayDispT& operator=(DHwpParameterArray *pintf)
  {
    TAutoDriver<DHwpParameterArray>::Bind(pintf, false);
    return *this;
  }

  DHwpParameterArrayDispT& operator=(DHwpParameterArrayPtr pintf)
  {
    TAutoDriver<DHwpParameterArray>::Bind(pintf, true);
    return *this;
  }

  HRESULT BindDefault()
  {
    return OLECHECK(Bind(CLSID_HwpParameterArray));
  }

  HRESULT BindRunning()
  {
    return BindToActive(CLSID_HwpParameterArray);
  }

  void            __fastcall SetItem(long index, VARIANT value);
  LPDISPATCH      __fastcall Clone();
  void            __fastcall Copy(LPDISPATCH srcarray);
  VARIANT         __fastcall Item(long index);
  void            __fastcall set_IsSet(VARIANT_BOOL Value);
  VARIANT_BOOL    __fastcall get_IsSet();
  void            __fastcall set_Count(long Value);
  long            __fastcall get_Count();

  __property   VARIANT_BOOL    IsSet = {read = get_IsSet, write = set_IsSet};
  __property   long            Count = {read = get_Count, write = set_Count};
};
typedef DHwpParameterArrayDispT<DHwpParameterArray> DHwpParameterArrayDisp;

// *********************************************************************//
// DispIntf:  DHwpCtrlCode
// Flags:     (4096) Dispatchable
// GUID:      {39E84D56-02DA-4AB0-B0C9-4F8AD94E3DF6}
// *********************************************************************//
template<class T>
class DHwpCtrlCodeDispT : public TAutoDriver<DHwpCtrlCode>
{
public:
  DHwpCtrlCodeDispT(){}

  DHwpCtrlCodeDispT(DHwpCtrlCode *pintf)
  {
    TAutoDriver<DHwpCtrlCode>::Bind(pintf, false);
  }

  DHwpCtrlCodeDispT(DHwpCtrlCodePtr pintf)
  {
    TAutoDriver<DHwpCtrlCode>::Bind(pintf, true);
  }

  DHwpCtrlCodeDispT& operator=(DHwpCtrlCode *pintf)
  {
    TAutoDriver<DHwpCtrlCode>::Bind(pintf, false);
    return *this;
  }

  DHwpCtrlCodeDispT& operator=(DHwpCtrlCodePtr pintf)
  {
    TAutoDriver<DHwpCtrlCode>::Bind(pintf, true);
    return *this;
  }

  HRESULT BindDefault()
  {
    return OLECHECK(Bind(CLSID_HwpCtrlCode));
  }

  HRESULT BindRunning()
  {
    return BindToActive(CLSID_HwpCtrlCode);
  }

  LPDISPATCH      __fastcall GetAnchorPos(long type);
  void            __fastcall set_CtrlCh(short Value);
  short           __fastcall get_CtrlCh();
  void            __fastcall set_ctrlid(BSTR Value);
  BSTR            __fastcall get_ctrlid();
  void            __fastcall set_Next(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_Next();
  void            __fastcall set_Properties(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_Properties();
  void            __fastcall set_UserDesc(BSTR Value);
  BSTR            __fastcall get_UserDesc();
  void            __fastcall set_Prev(LPDISPATCH Value);
  LPDISPATCH      __fastcall get_Prev();

  __property   short           CtrlCh = {read = get_CtrlCh, write = set_CtrlCh};
  __property   BSTR            ctrlid = {read = get_ctrlid, write = set_ctrlid};
  __property   LPDISPATCH      Next = {read = get_Next, write = set_Next};
  __property   LPDISPATCH      Properties = {read = get_Properties, write = set_Properties};
  __property   BSTR            UserDesc = {read = get_UserDesc, write = set_UserDesc};
  __property   LPDISPATCH      Prev = {read = get_Prev, write = set_Prev};
};
typedef DHwpCtrlCodeDispT<DHwpCtrlCode> DHwpCtrlCodeDisp;

// *********************************************************************//
// DispIntf:  _DHwpCtrl
// Flags:     (4112) Hidden Dispatchable
// GUID:      {377C0BC8-E22C-45ED-851A-FBA0208DDC23}
// *********************************************************************//
template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::InsertCtrl(BSTR ctrlid, VARIANT initparam/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("InsertCtrl"), DISPID(24));
  TAutoArgs<2> _args;
  _args[1] = ctrlid /*[VT_BSTR:0]*/;
  _args[2] = initparam /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::PutFieldText(BSTR fieldlist, BSTR textlist)
{
  _TDispID _dispid(*this, OLETEXT("PutFieldText"), DISPID(27));
  TAutoArgs<2> _args;
  _args[1] = fieldlist /*[VT_BSTR:0]*/;
  _args[2] = textlist /*[VT_BSTR:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::MoveToField(BSTR field, VARIANT text/*[opt]*/, VARIANT start/*[opt]*/, 
                               VARIANT select/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("MoveToField"), DISPID(25));
  TAutoArgs<4> _args;
  _args[1] = field /*[VT_BSTR:0]*/;
  _args[2] = text /*[VT_VARIANT:0]*/;
  _args[3] = start /*[VT_VARIANT:0]*/;
  _args[4] = select /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::InitScan(VARIANT option/*[opt]*/, VARIANT range/*[opt]*/, VARIANT spara/*[opt]*/
                            , VARIANT spos/*[opt]*/, VARIANT epara/*[opt]*/, VARIANT epos/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("InitScan"), DISPID(46));
  TAutoArgs<6> _args;
  _args[1] = option /*[VT_VARIANT:0]*/;
  _args[2] = range /*[VT_VARIANT:0]*/;
  _args[3] = spara /*[VT_VARIANT:0]*/;
  _args[4] = spos /*[VT_VARIANT:0]*/;
  _args[5] = epara /*[VT_VARIANT:0]*/;
  _args[6] = epos /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::Open(BSTR Path, VARIANT format/*[opt]*/, VARIANT arg/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("Open"), DISPID(26));
  TAutoArgs<3> _args;
  _args[1] = Path /*[VT_BSTR:0]*/;
  _args[2] = format /*[VT_VARIANT:0]*/;
  _args[3] = arg /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::Insert(BSTR Path, VARIANT format/*[opt]*/, VARIANT arg/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("Insert"), DISPID(23));
  TAutoArgs<3> _args;
  _args[1] = Path /*[VT_BSTR:0]*/;
  _args[2] = format /*[VT_VARIANT:0]*/;
  _args[3] = arg /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::CreatePageImage(BSTR Path, VARIANT pgno/*[opt]*/, VARIANT resolution/*[opt]*/, 
                                   VARIANT depth/*[opt]*/, VARIANT format/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("CreatePageImage"), DISPID(18));
  TAutoArgs<5> _args;
  _args[1] = Path /*[VT_BSTR:0]*/;
  _args[2] = pgno /*[VT_VARIANT:0]*/;
  _args[3] = resolution /*[VT_VARIANT:0]*/;
  _args[4] = depth /*[VT_VARIANT:0]*/;
  _args[5] = format /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::RenameField(BSTR oldname, BSTR newname)
{
  _TDispID _dispid(*this, OLETEXT("RenameField"), DISPID(28));
  TAutoArgs<2> _args;
  _args[1] = oldname /*[VT_BSTR:0]*/;
  _args[2] = newname /*[VT_BSTR:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::Save(VARIANT save_if_dirty/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("Save"), DISPID(30));
  TAutoArgs<1> _args;
  _args[1] = save_if_dirty /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::Run(BSTR actid)
{
  _TDispID _dispid(*this, OLETEXT("Run"), DISPID(29));
  TAutoArgs<1> _args;
  _args[1] = actid /*[VT_BSTR:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::GetSelectedPosBySet(LPDISPATCH sset, LPDISPATCH eset)
{
  _TDispID _dispid(*this, OLETEXT("GetSelectedPosBySet"), DISPID(15064));
  TAutoArgs<2> _args;
  _args[1] = sset /*[VT_DISPATCH:0]*/;
  _args[2] = eset /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::MakeVersionDiffAll(VARIANT filepath/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("MakeVersionDiffAll"), DISPID(15068));
  TAutoArgs<1> _args;
  _args[1] = filepath /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT __fastcall
_DHwpCtrlDispT<T>::GetFormObjectAttr(BSTR formname, BSTR attrname)
{
  _TDispID _dispid(*this, OLETEXT("GetFormObjectAttr"), DISPID(15060));
  TAutoArgs<2> _args;
  _args[1] = formname /*[VT_BSTR:0]*/;
  _args[2] = attrname /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::MoveToFieldEx(BSTR field, VARIANT text/*[opt]*/, VARIANT start/*[opt]*/, 
                                 VARIANT select/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("MoveToFieldEx"), DISPID(77));
  TAutoArgs<4> _args;
  _args[1] = field /*[VT_BSTR:0]*/;
  _args[2] = text /*[VT_VARIANT:0]*/;
  _args[3] = start /*[VT_VARIANT:0]*/;
  _args[4] = select /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SetAutoSave(BSTR FileName, long saveinterval)
{
  _TDispID _dispid(*this, OLETEXT("SetAutoSave"), DISPID(15059));
  TAutoArgs<2> _args;
  _args[1] = FileName /*[VT_BSTR:0]*/;
  _args[2] = saveinterval /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::VersionSave(BSTR filepath, long overwirte, long infolock, VARIANT writer/*[opt]*/
                               , VARIANT description/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("VersionSave"), DISPID(15066));
  TAutoArgs<5> _args;
  _args[1] = filepath /*[VT_BSTR:0]*/;
  _args[2] = overwirte /*[VT_I4:0]*/;
  _args[3] = infolock /*[VT_I4:0]*/;
  _args[4] = writer /*[VT_VARIANT:0]*/;
  _args[5] = description /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::VersionDelete(long index)
{
  _TDispID _dispid(*this, OLETEXT("VersionDelete"), DISPID(15067));
  TAutoArgs<1> _args;
  _args[1] = index /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::GetTableCellAddr(long type)
{
  _TDispID _dispid(*this, OLETEXT("GetTableCellAddr"), DISPID(15065));
  TAutoArgs<1> _args;
  _args[1] = type /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::GetVersionInfo(long index)
{
  _TDispID _dispid(*this, OLETEXT("GetVersionInfo"), DISPID(15069));
  TAutoArgs<1> _args;
  _args[1] = index /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::GetVersionHistoryCount()
{
  _TDispID _dispid(*this, OLETEXT("GetVersionHistoryCount"), DISPID(15070));
  TAutoArgs<0> _args;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::CreateAction(BSTR actid)
{
  _TDispID _dispid(*this, OLETEXT("CreateAction"), DISPID(17));
  TAutoArgs<1> _args;
  _args[1] = actid /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SaveDocument(BSTR szFileName, BSTR szFileType)
{
  _TDispID _dispid(*this, OLETEXT("SaveDocument"), DISPID(33));
  TAutoArgs<2> _args;
  _args[1] = szFileName /*[VT_BSTR:0]*/;
  _args[2] = szFileType /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::OpenDocument(BSTR szFileName, BSTR szFileType)
{
  _TDispID _dispid(*this, OLETEXT("OpenDocument"), DISPID(32));
  TAutoArgs<2> _args;
  _args[1] = szFileName /*[VT_BSTR:0]*/;
  _args[2] = szFileType /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::InsertPicture(BSTR Path, VARIANT embedded/*[opt]*/, VARIANT sizeOption/*[opt]*/, 
                                 VARIANT reverse/*[opt]*/, VARIANT watermark/*[opt]*/, 
                                 VARIANT effect/*[opt]*/, VARIANT width/*[opt]*/, 
                                 VARIANT height/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("InsertPicture"), DISPID(38));
  TAutoArgs<8> _args;
  _args[1] = Path /*[VT_BSTR:0]*/;
  _args[2] = embedded /*[VT_VARIANT:0]*/;
  _args[3] = sizeOption /*[VT_VARIANT:0]*/;
  _args[4] = reverse /*[VT_VARIANT:0]*/;
  _args[5] = watermark /*[VT_VARIANT:0]*/;
  _args[6] = effect /*[VT_VARIANT:0]*/;
  _args[7] = width /*[VT_VARIANT:0]*/;
  _args[8] = height /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SetCurFieldName(BSTR fieldname, VARIANT option/*[opt]*/, 
                                   VARIANT direction/*[opt]*/, VARIANT memo/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("SetCurFieldName"), DISPID(44));
  TAutoArgs<4> _args;
  _args[1] = fieldname /*[VT_BSTR:0]*/;
  _args[2] = option /*[VT_VARIANT:0]*/;
  _args[3] = direction /*[VT_VARIANT:0]*/;
  _args[4] = memo /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> BSTR __fastcall
_DHwpCtrlDispT<T>::GetCurFieldName(VARIANT option/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("GetCurFieldName"), DISPID(43));
  TAutoArgs<1> _args;
  _args[1] = option /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SetToolBar(long lToolBarID, VARIANT varID)
{
  _TDispID _dispid(*this, OLETEXT("SetToolBar"), DISPID(36));
  TAutoArgs<2> _args;
  _args[1] = lToolBarID /*[VT_I4:0]*/;
  _args[2] = varID /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::PrintDocument()
{
  _TDispID _dispid(*this, OLETEXT("PrintDocument"), DISPID(35));
  TAutoArgs<0> _args;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::ShowToolBar(long bShow)
{
  _TDispID _dispid(*this, OLETEXT("ShowToolBar"), DISPID(37));
  TAutoArgs<1> _args;
  _args[1] = bShow /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SaveAs(BSTR Path, VARIANT format/*[opt]*/, VARIANT arg/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("SaveAs"), DISPID(31));
  TAutoArgs<3> _args;
  _args[1] = Path /*[VT_BSTR:0]*/;
  _args[2] = format /*[VT_VARIANT:0]*/;
  _args[3] = arg /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::InsertDocument(BSTR szFileName)
{
  _TDispID _dispid(*this, OLETEXT("InsertDocument"), DISPID(34));
  TAutoArgs<1> _args;
  _args[1] = szFileName /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> BSTR __fastcall
_DHwpCtrlDispT<T>::GetFieldList(VARIANT number/*[opt]*/, VARIANT option/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("GetFieldList"), DISPID(21));
  TAutoArgs<2> _args;
  _args[1] = number /*[VT_VARIANT:0]*/;
  _args[2] = option /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::FieldExist(BSTR field)
{
  _TDispID _dispid(*this, OLETEXT("FieldExist"), DISPID(20));
  TAutoArgs<1> _args;
  _args[1] = field /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> BSTR __fastcall
_DHwpCtrlDispT<T>::GetFieldText(BSTR fieldlist)
{
  _TDispID _dispid(*this, OLETEXT("GetFieldText"), DISPID(22));
  TAutoArgs<1> _args;
  _args[1] = fieldlist /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::Clear(VARIANT option/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("Clear"), DISPID(16));
  TAutoArgs<1> _args;
  _args[1] = option /*[VT_VARIANT:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::CreateSet(BSTR setid)
{
  _TDispID _dispid(*this, OLETEXT("CreateSet"), DISPID(19));
  TAutoArgs<1> _args;
  _args[1] = setid /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SelectText(long spara, long spos, long epara, long epos)
{
  _TDispID _dispid(*this, OLETEXT("SelectText"), DISPID(42));
  TAutoArgs<4> _args;
  _args[1] = spara /*[VT_I4:0]*/;
  _args[2] = spos /*[VT_I4:0]*/;
  _args[3] = epara /*[VT_I4:0]*/;
  _args[4] = epos /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::DeleteCtrl(LPDISPATCH ctrl)
{
  _TDispID _dispid(*this, OLETEXT("DeleteCtrl"), DISPID(45));
  TAutoArgs<1> _args;
  _args[1] = ctrl /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::CreateField(BSTR direction, VARIANT memo/*[opt]*/, VARIANT name/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("CreateField"), DISPID(39));
  TAutoArgs<3> _args;
  _args[1] = direction /*[VT_BSTR:0]*/;
  _args[2] = memo /*[VT_VARIANT:0]*/;
  _args[3] = name /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::MovePos(VARIANT moveID/*[opt]*/, VARIANT para/*[opt]*/, VARIANT pos/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("MovePos"), DISPID(41));
  TAutoArgs<3> _args;
  _args[1] = moveID /*[VT_VARIANT:0]*/;
  _args[2] = para /*[VT_VARIANT:0]*/;
  _args[3] = pos /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::SetClientName(BSTR szClient)
{
  _TDispID _dispid(*this, OLETEXT("SetClientName"), DISPID(40));
  TAutoArgs<1> _args;
  _args[1] = szClient /*[VT_BSTR:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::GetSelectedPos(long* slist, long* spara, long* spos, long* elist, long* epara, 
                                  long* epos)
{
  _TDispID _dispid(*this, OLETEXT("GetSelectedPos"), DISPID(15063));
  TAutoArgs<6> _args;
  _args[1] = slist /*[VT_I4:1]*/;
  _args[2] = spara /*[VT_I4:1]*/;
  _args[3] = spos /*[VT_I4:1]*/;
  _args[4] = elist /*[VT_I4:1]*/;
  _args[5] = epara /*[VT_I4:1]*/;
  _args[6] = epos /*[VT_I4:1]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::IsCommandLock(BSTR actionID)
{
  _TDispID _dispid(*this, OLETEXT("IsCommandLock"), DISPID(50));
  TAutoArgs<1> _args;
  _args[1] = actionID /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::GetFilterList(BSTR* szfilterlist, VARIANT flags)
{
  _TDispID _dispid(*this, OLETEXT("GetFilterList"), DISPID(51));
  TAutoArgs<2> _args;
  _args[1] = szfilterlist /*[VT_BSTR:1]*/;
  _args[2] = flags /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::ReplaceAction(BSTR OldActionID, BSTR NewActionID)
{
  _TDispID _dispid(*this, OLETEXT("ReplaceAction"), DISPID(70));
  TAutoArgs<2> _args;
  _args[1] = OldActionID /*[VT_BSTR:0]*/;
  _args[2] = NewActionID /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> BSTR __fastcall
_DHwpCtrlDispT<T>::SaveState(BSTR FileName)
{
  _TDispID _dispid(*this, OLETEXT("SaveState"), DISPID(68));
  TAutoArgs<1> _args;
  _args[1] = FileName /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::LoadState(BSTR FileName)
{
  _TDispID _dispid(*this, OLETEXT("LoadState"), DISPID(69));
  TAutoArgs<1> _args;
  _args[1] = FileName /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::LockCommand(BSTR actionID, long lock)
{
  _TDispID _dispid(*this, OLETEXT("LockCommand"), DISPID(49));
  TAutoArgs<2> _args;
  _args[1] = actionID /*[VT_BSTR:0]*/;
  _args[2] = lock /*[VT_I4:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SetPos(long list, long para, long pos)
{
  _TDispID _dispid(*this, OLETEXT("SetPos"), DISPID(53));
  TAutoArgs<3> _args;
  _args[1] = list /*[VT_I4:0]*/;
  _args[2] = para /*[VT_I4:0]*/;
  _args[3] = pos /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::ReleaseScan()
{
  _TDispID _dispid(*this, OLETEXT("ReleaseScan"), DISPID(48));
  OleProcedure(_dispid);
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::GetPos(long* list, long* para, long* pos)
{
  _TDispID _dispid(*this, OLETEXT("GetPos"), DISPID(52));
  TAutoArgs<3> _args;
  _args[1] = list /*[VT_I4:1]*/;
  _args[2] = para /*[VT_I4:1]*/;
  _args[3] = pos /*[VT_I4:1]*/;
  OleProcedure(_dispid, _args);
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::GetText(BSTR* text)
{
  _TDispID _dispid(*this, OLETEXT("GetText"), DISPID(47));
  TAutoArgs<1> _args;
  _args[1] = text /*[VT_BSTR:1]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT __fastcall
_DHwpCtrlDispT<T>::InsertBackgroundPicture(BSTR bordertype, BSTR Path, VARIANT embedded/*[opt]*/, 
                                           VARIANT filloption/*[opt]*/, VARIANT watermark/*[opt]*/, 
                                           VARIANT effect/*[opt]*/, VARIANT brightness/*[opt]*/, 
                                           VARIANT contrast/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("InsertBackgroundPicture"), DISPID(61));
  TAutoArgs<8> _args;
  _args[1] = bordertype /*[VT_BSTR:0]*/;
  _args[2] = Path /*[VT_BSTR:0]*/;
  _args[3] = embedded /*[VT_VARIANT:0]*/;
  _args[4] = filloption /*[VT_VARIANT:0]*/;
  _args[5] = watermark /*[VT_VARIANT:0]*/;
  _args[6] = effect /*[VT_VARIANT:0]*/;
  _args[7] = brightness /*[VT_VARIANT:0]*/;
  _args[8] = contrast /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::SetFieldViewOption(long option)
{
  _TDispID _dispid(*this, OLETEXT("SetFieldViewOption"), DISPID(62));
  TAutoArgs<1> _args;
  _args[1] = option /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::ShowStatusBar(long Show)
{
  _TDispID _dispid(*this, OLETEXT("ShowStatusBar"), DISPID(66));
  TAutoArgs<1> _args;
  _args[1] = Show /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::SetTextFile(VARIANT data, BSTR format, BSTR option)
{
  _TDispID _dispid(*this, OLETEXT("SetTextFile"), DISPID(64));
  TAutoArgs<3> _args;
  _args[1] = data /*[VT_VARIANT:0]*/;
  _args[2] = format /*[VT_BSTR:0]*/;
  _args[3] = option /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::GetMousePos(long Xrelto, long Yrelto)
{
  _TDispID _dispid(*this, OLETEXT("GetMousePos"), DISPID(65));
  TAutoArgs<2> _args;
  _args[1] = Xrelto /*[VT_I4:0]*/;
  _args[2] = Yrelto /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::GetViewStatus(long nType)
{
  _TDispID _dispid(*this, OLETEXT("GetViewStatus"), DISPID(75));
  TAutoArgs<1> _args;
  _args[1] = nType /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::RegisterModule(BSTR ModuleType, VARIANT ModuleData)
{
  _TDispID _dispid(*this, OLETEXT("RegisterModule"), DISPID(76));
  TAutoArgs<2> _args;
  _args[1] = ModuleType /*[VT_BSTR:0]*/;
  _args[2] = ModuleData /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::GetMessageSet()
{
  _TDispID _dispid(*this, OLETEXT("GetMessageSet"), DISPID(74));
  TAutoArgs<0> _args;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT __fastcall
_DHwpCtrlDispT<T>::GetTextFile(BSTR format, BSTR option)
{
  _TDispID _dispid(*this, OLETEXT("GetTextFile"), DISPID(63));
  TAutoArgs<2> _args;
  _args[1] = format /*[VT_BSTR:0]*/;
  _args[2] = option /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::GetFileInfo(BSTR FileName)
{
  _TDispID _dispid(*this, OLETEXT("GetFileInfo"), DISPID(67));
  TAutoArgs<1> _args;
  _args[1] = FileName /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
_DHwpCtrlDispT<T>::GetPosBySet()
{
  _TDispID _dispid(*this, OLETEXT("GetPosBySet"), DISPID(58));
  TAutoArgs<0> _args;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::ConvertPUAHangulToUnicode(VARIANT reverse/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("ConvertPUAHangulToUnicode"), DISPID(16000));
  TAutoArgs<1> _args;
  _args[1] = reverse /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::AboutBox()
{
  _TDispID _dispid(*this, OLETEXT("AboutBox"), DISPID(-552));
  OleProcedure(_dispid);
}

template <class T> BSTR __fastcall
_DHwpCtrlDispT<T>::GetBinDataPath(long binid)
{
  _TDispID _dispid(*this, OLETEXT("GetBinDataPath"), DISPID(15081));
  TAutoArgs<1> _args;
  _args[1] = binid /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::InsertMenu(BSTR menuidx, BSTR menustr, BSTR actionstr, long menutype)
{
  _TDispID _dispid(*this, OLETEXT("InsertMenu"), DISPID(15073));
  TAutoArgs<4> _args;
  _args[1] = menuidx /*[VT_BSTR:0]*/;
  _args[2] = menustr /*[VT_BSTR:0]*/;
  _args[3] = actionstr /*[VT_BSTR:0]*/;
  _args[4] = menutype /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::GetMessageBoxMode()
{
  _TDispID _dispid(*this, OLETEXT("GetMessageBoxMode"), DISPID(15077));
  TAutoArgs<0> _args;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SetFormObjectAttr(BSTR formname, BSTR attrname, VARIANT value)
{
  _TDispID _dispid(*this, OLETEXT("SetFormObjectAttr"), DISPID(15061));
  TAutoArgs<3> _args;
  _args[1] = formname /*[VT_BSTR:0]*/;
  _args[2] = attrname /*[VT_BSTR:0]*/;
  _args[3] = value /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::PreviewCommand(long previewmode)
{
  _TDispID _dispid(*this, OLETEXT("PreviewCommand"), DISPID(15062));
  TAutoArgs<1> _args;
  _args[1] = previewmode /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::ImportStyle(LPDISPATCH styleset)
{
  _TDispID _dispid(*this, OLETEXT("ImportStyle"), DISPID(15080));
  TAutoArgs<1> _args;
  _args[1] = styleset /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::SetMessageBoxMode(long mode)
{
  _TDispID _dispid(*this, OLETEXT("SetMessageBoxMode"), DISPID(15078));
  TAutoArgs<1> _args;
  _args[1] = mode /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::ExportStyle(LPDISPATCH styleset)
{
  _TDispID _dispid(*this, OLETEXT("ExportStyle"), DISPID(15079));
  TAutoArgs<1> _args;
  _args[1] = styleset /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::GetActionCmdUIStatus(BSTR actid, long bWithKey, long* bEnabled, long* bChecked, 
                                        long* bRadio, BSTR* szText)
{
  _TDispID _dispid(*this, OLETEXT("GetActionCmdUIStatus"), DISPID(55));
  TAutoArgs<6> _args;
  _args[1] = actid /*[VT_BSTR:0]*/;
  _args[2] = bWithKey /*[VT_I4:0]*/;
  _args[3] = bEnabled /*[VT_I4:1]*/;
  _args[4] = bChecked /*[VT_I4:1]*/;
  _args[5] = bRadio /*[VT_I4:1]*/;
  _args[6] = szText /*[VT_BSTR:1]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::ModifyFieldProperties(BSTR field, long remove, long add)
{
  _TDispID _dispid(*this, OLETEXT("ModifyFieldProperties"), DISPID(57));
  TAutoArgs<3> _args;
  _args[1] = field /*[VT_BSTR:0]*/;
  _args[2] = remove /*[VT_I4:0]*/;
  _args[3] = add /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::KeyIndicator(long* seccnt, long* secno, long* prnpageno, long* colno, long* line
                                , long* pos, short* over, BSTR* ctrlname)
{
  _TDispID _dispid(*this, OLETEXT("KeyIndicator"), DISPID(54));
  TAutoArgs<8> _args;
  _args[1] = seccnt /*[VT_I4:1]*/;
  _args[2] = secno /*[VT_I4:1]*/;
  _args[3] = prnpageno /*[VT_I4:1]*/;
  _args[4] = colno /*[VT_I4:1]*/;
  _args[5] = line /*[VT_I4:1]*/;
  _args[6] = pos /*[VT_I4:1]*/;
  _args[7] = over /*[VT_I2:1]*/;
  _args[8] = ctrlname /*[VT_BSTR:1]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SetPosBySet(LPDISPATCH pos)
{
  _TDispID _dispid(*this, OLETEXT("SetPosBySet"), DISPID(59));
  TAutoArgs<1> _args;
  _args[1] = pos /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
_DHwpCtrlDispT<T>::GetTextBySet(LPDISPATCH text)
{
  _TDispID _dispid(*this, OLETEXT("GetTextBySet"), DISPID(60));
  TAutoArgs<1> _args;
  _args[1] = text /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> BSTR __fastcall
_DHwpCtrlDispT<T>::GetScriptSource(BSTR filepath)
{
  _TDispID _dispid(*this, OLETEXT("GetScriptSource"), DISPID(15071));
  TAutoArgs<1> _args;
  _args[1] = filepath /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::RunScriptMacro(BSTR FunctionName, long uMacroType, long uScriptType)
{
  _TDispID _dispid(*this, OLETEXT("RunScriptMacro"), DISPID(15072));
  TAutoArgs<3> _args;
  _args[1] = FunctionName /*[VT_BSTR:0]*/;
  _args[2] = uMacroType /*[VT_I4:0]*/;
  _args[3] = uScriptType /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::SetBarCodeImage(BSTR lpImagePath, long pgno, long index, long x, long y, 
                                   VARIANT width/*[opt]*/, VARIANT height/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("SetBarCodeImage"), DISPID(15076));
  TAutoArgs<7> _args;
  _args[1] = lpImagePath /*[VT_BSTR:0]*/;
  _args[2] = pgno /*[VT_I4:0]*/;
  _args[3] = index /*[VT_I4:0]*/;
  _args[4] = x /*[VT_I4:0]*/;
  _args[5] = y /*[VT_I4:0]*/;
  _args[6] = width /*[VT_VARIANT:0]*/;
  _args[7] = height /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
_DHwpCtrlDispT<T>::RemoveMenu(BSTR menuidx, long menutype)
{
  _TDispID _dispid(*this, OLETEXT("RemoveMenu"), DISPID(15074));
  TAutoArgs<2> _args;
  _args[1] = menuidx /*[VT_BSTR:0]*/;
  _args[2] = menutype /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> BSTR __fastcall
_DHwpCtrlDispT<T>::GetPageText(long pgno, VARIANT option/*[opt]*/)
{
  _TDispID _dispid(*this, OLETEXT("GetPageText"), DISPID(15075));
  TAutoArgs<2> _args;
  _args[1] = pgno /*[VT_I4:0]*/;
  _args[2] = option /*[VT_VARIANT:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_XHwpDocuments(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("XHwpDocuments"), DISPID(122));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_XHwpDocuments()
{
  _TDispID _dispid(*this, OLETEXT("XHwpDocuments"), DISPID(122));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_IsPreviewMode(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("IsPreviewMode"), DISPID(121));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_IsPreviewMode()
{
  _TDispID _dispid(*this, OLETEXT("IsPreviewMode"), DISPID(121));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_HyperlinkMode(long /*[VT_I4:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("HyperlinkMode"), DISPID(78));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> long /*[VT_I4:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_HyperlinkMode()
{
  _TDispID _dispid(*this, OLETEXT("HyperlinkMode"), DISPID(78));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_ScrollPosInfo(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("ScrollPosInfo"), DISPID(73));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_ScrollPosInfo()
{
  _TDispID _dispid(*this, OLETEXT("ScrollPosInfo"), DISPID(73));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_EngineProperties(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("EngineProperties"), DISPID(72));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_EngineProperties()
{
  _TDispID _dispid(*this, OLETEXT("EngineProperties"), DISPID(72));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_AutoShowHideToolBar(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("AutoShowHideToolBar"), DISPID(71));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_AutoShowHideToolBar()
{
  _TDispID _dispid(*this, OLETEXT("AutoShowHideToolBar"), DISPID(71));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_EditMode(long /*[VT_I4:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("EditMode"), DISPID(56));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> long /*[VT_I4:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_EditMode()
{
  _TDispID _dispid(*this, OLETEXT("EditMode"), DISPID(56));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_SelectionMode(short /*[VT_I2:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("SelectionMode"), DISPID(15));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> short /*[VT_I2:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_SelectionMode()
{
  _TDispID _dispid(*this, OLETEXT("SelectionMode"), DISPID(15));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_ReadOnlyMode(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("ReadOnlyMode"), DISPID(14));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_ReadOnlyMode()
{
  _TDispID _dispid(*this, OLETEXT("ReadOnlyMode"), DISPID(14));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_CurFieldState(long /*[VT_I4:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("CurFieldState"), DISPID(13));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> long /*[VT_I4:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_CurFieldState()
{
  _TDispID _dispid(*this, OLETEXT("CurFieldState"), DISPID(13));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_Version(long /*[VT_I4:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("Version"), DISPID(12));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> long /*[VT_I4:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_Version()
{
  _TDispID _dispid(*this, OLETEXT("Version"), DISPID(12));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_ViewProperties(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("ViewProperties"), DISPID(11));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_ViewProperties()
{
  _TDispID _dispid(*this, OLETEXT("ViewProperties"), DISPID(11));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_Path(BSTR /*[VT_BSTR:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("Path"), DISPID(10));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> BSTR /*[VT_BSTR:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_Path()
{
  _TDispID _dispid(*this, OLETEXT("Path"), DISPID(10));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_ParentCtrl(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("ParentCtrl"), DISPID(9));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_ParentCtrl()
{
  _TDispID _dispid(*this, OLETEXT("ParentCtrl"), DISPID(9));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_ParaShape(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("ParaShape"), DISPID(8));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_ParaShape()
{
  _TDispID _dispid(*this, OLETEXT("ParaShape"), DISPID(8));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_PageCount(long /*[VT_I4:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("PageCount"), DISPID(7));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> long /*[VT_I4:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_PageCount()
{
  _TDispID _dispid(*this, OLETEXT("PageCount"), DISPID(7));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_LastCtrl(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("LastCtrl"), DISPID(6));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_LastCtrl()
{
  _TDispID _dispid(*this, OLETEXT("LastCtrl"), DISPID(6));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_IsModified(short /*[VT_I2:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("IsModified"), DISPID(5));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> short /*[VT_I2:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_IsModified()
{
  _TDispID _dispid(*this, OLETEXT("IsModified"), DISPID(5));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_IsEmpty(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("IsEmpty"), DISPID(4));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_IsEmpty()
{
  _TDispID _dispid(*this, OLETEXT("IsEmpty"), DISPID(4));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_HeadCtrl(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("HeadCtrl"), DISPID(3));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_HeadCtrl()
{
  _TDispID _dispid(*this, OLETEXT("HeadCtrl"), DISPID(3));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_CharShape(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("CharShape"), DISPID(2));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_CharShape()
{
  _TDispID _dispid(*this, OLETEXT("CharShape"), DISPID(2));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
_DHwpCtrlDispT<T>::set_CellShape(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("CellShape"), DISPID(1));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
_DHwpCtrlDispT<T>::get_CellShape()
{
  _TDispID _dispid(*this, OLETEXT("CellShape"), DISPID(1));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

// *********************************************************************//
// DispIntf:  _DHwpCtrlEvents
// Flags:     (4096) Dispatchable
// GUID:      {402995CB-FF79-4467-B7D1-4FFA32592B21}
// *********************************************************************//
template <class T> void __fastcall
_DHwpCtrlEventsDispT<T>::NotifyMessage(BSTR Msg, long WParam, long LParam)
{
  _TDispID _dispid(/* NotifyMessage */ DISPID(1));
  TAutoArgs<3> _args;
  _args[1] = Msg /*[VT_BSTR:0]*/;
  _args[2] = WParam /*[VT_I4:0]*/;
  _args[3] = LParam /*[VT_I4:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> void __fastcall
_DHwpCtrlEventsDispT<T>::OnMouseLButtonDown(long x, long y)
{
  _TDispID _dispid(/* OnMouseLButtonDown */ DISPID(2));
  TAutoArgs<2> _args;
  _args[1] = x /*[VT_I4:0]*/;
  _args[2] = y /*[VT_I4:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> void __fastcall
_DHwpCtrlEventsDispT<T>::OnScroll(long WParam, long LParam)
{
  _TDispID _dispid(/* OnScroll */ DISPID(3));
  TAutoArgs<2> _args;
  _args[1] = WParam /*[VT_I4:0]*/;
  _args[2] = LParam /*[VT_I4:0]*/;
  OleProcedure(_dispid, _args);
}

// *********************************************************************//
// DispIntf:  DHwpAction
// Flags:     (4096) Dispatchable
// GUID:      {5227AA3C-8332-4F0A-9B82-D7D89A5CF395}
// *********************************************************************//
template <class T> long __fastcall
DHwpActionDispT<T>::Execute(LPDISPATCH param)
{
  _TDispID _dispid(*this, OLETEXT("Execute"), DISPID(4));
  TAutoArgs<1> _args;
  _args[1] = param /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
DHwpActionDispT<T>::CreateSet()
{
  _TDispID _dispid(*this, OLETEXT("CreateSet"), DISPID(3));
  TAutoArgs<0> _args;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpActionDispT<T>::Run()
{
  _TDispID _dispid(*this, OLETEXT("Run"), DISPID(7));
  OleProcedure(_dispid);
}

template <class T> long __fastcall
DHwpActionDispT<T>::GetDefault(LPDISPATCH param)
{
  _TDispID _dispid(*this, OLETEXT("GetDefault"), DISPID(5));
  TAutoArgs<1> _args;
  _args[1] = param /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> long __fastcall
DHwpActionDispT<T>::PopupDialog(LPDISPATCH param)
{
  _TDispID _dispid(*this, OLETEXT("PopupDialog"), DISPID(6));
  TAutoArgs<1> _args;
  _args[1] = param /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpActionDispT<T>::set_setid(BSTR /*[VT_BSTR:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("setid"), DISPID(2));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> BSTR /*[VT_BSTR:0]*/ __fastcall
DHwpActionDispT<T>::get_setid()
{
  _TDispID _dispid(*this, OLETEXT("setid"), DISPID(2));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpActionDispT<T>::set_actid(BSTR /*[VT_BSTR:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("actid"), DISPID(1));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> BSTR /*[VT_BSTR:0]*/ __fastcall
DHwpActionDispT<T>::get_actid()
{
  _TDispID _dispid(*this, OLETEXT("actid"), DISPID(1));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

// *********************************************************************//
// DispIntf:  DHwpParameterSet
// Flags:     (4096) Dispatchable
// GUID:      {E5BBBA9F-732F-450D-8433-1B7AA4F60503}
// *********************************************************************//
template <class T> LPDISPATCH __fastcall
DHwpParameterSetDispT<T>::CreateItemArray(BSTR itemid, long Count)
{
  _TDispID _dispid(*this, OLETEXT("CreateItemArray"), DISPID(5));
  TAutoArgs<2> _args;
  _args[1] = itemid /*[VT_BSTR:0]*/;
  _args[2] = Count /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpParameterSetDispT<T>::RemoveAll(BSTR setid)
{
  _TDispID _dispid(*this, OLETEXT("RemoveAll"), DISPID(12));
  TAutoArgs<1> _args;
  _args[1] = setid /*[VT_BSTR:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> LPDISPATCH __fastcall
DHwpParameterSetDispT<T>::Clone()
{
  _TDispID _dispid(*this, OLETEXT("Clone"), DISPID(4));
  TAutoArgs<0> _args;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> LPDISPATCH __fastcall
DHwpParameterSetDispT<T>::CreateItemSet(BSTR itemid, BSTR setid)
{
  _TDispID _dispid(*this, OLETEXT("CreateItemSet"), DISPID(6));
  TAutoArgs<2> _args;
  _args[1] = itemid /*[VT_BSTR:0]*/;
  _args[2] = setid /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpParameterSetDispT<T>::GetIntersection(LPDISPATCH srcset)
{
  _TDispID _dispid(*this, OLETEXT("GetIntersection"), DISPID(7));
  TAutoArgs<1> _args;
  _args[1] = srcset /*[VT_DISPATCH:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> void __fastcall
DHwpParameterSetDispT<T>::RemoveItem(BSTR itemid)
{
  _TDispID _dispid(*this, OLETEXT("RemoveItem"), DISPID(13));
  TAutoArgs<1> _args;
  _args[1] = itemid /*[VT_BSTR:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> VARIANT __fastcall
DHwpParameterSetDispT<T>::Item(BSTR itemid)
{
  _TDispID _dispid(*this, OLETEXT("Item"), DISPID(9));
  TAutoArgs<1> _args;
  _args[1] = itemid /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
DHwpParameterSetDispT<T>::ItemExist(BSTR itemid)
{
  _TDispID _dispid(*this, OLETEXT("ItemExist"), DISPID(10));
  TAutoArgs<1> _args;
  _args[1] = itemid /*[VT_BSTR:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> VARIANT_BOOL __fastcall
DHwpParameterSetDispT<T>::IsEquivalent(LPDISPATCH srcset)
{
  _TDispID _dispid(*this, OLETEXT("IsEquivalent"), DISPID(8));
  TAutoArgs<1> _args;
  _args[1] = srcset /*[VT_DISPATCH:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpParameterSetDispT<T>::SetItem(BSTR itemid, VARIANT value)
{
  _TDispID _dispid(*this, OLETEXT("SetItem"), DISPID(14));
  TAutoArgs<2> _args;
  _args[1] = itemid /*[VT_BSTR:0]*/;
  _args[2] = value /*[VT_VARIANT:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> void __fastcall
DHwpParameterSetDispT<T>::Merge(LPDISPATCH srcset)
{
  _TDispID _dispid(*this, OLETEXT("Merge"), DISPID(11));
  TAutoArgs<1> _args;
  _args[1] = srcset /*[VT_DISPATCH:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> void __fastcall
DHwpParameterSetDispT<T>::set_setid(BSTR /*[VT_BSTR:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("setid"), DISPID(3));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> BSTR /*[VT_BSTR:0]*/ __fastcall
DHwpParameterSetDispT<T>::get_setid()
{
  _TDispID _dispid(*this, OLETEXT("setid"), DISPID(3));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpParameterSetDispT<T>::set_IsSet(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("IsSet"), DISPID(2));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall
DHwpParameterSetDispT<T>::get_IsSet()
{
  _TDispID _dispid(*this, OLETEXT("IsSet"), DISPID(2));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpParameterSetDispT<T>::set_Count(long /*[VT_I4:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("Count"), DISPID(1));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> long /*[VT_I4:0]*/ __fastcall
DHwpParameterSetDispT<T>::get_Count()
{
  _TDispID _dispid(*this, OLETEXT("Count"), DISPID(1));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

// *********************************************************************//
// DispIntf:  DHwpParameterArray
// Flags:     (4096) Dispatchable
// GUID:      {E35C1FFB-BAD5-44B7-A8F2-7B598123C2FC}
// *********************************************************************//
template <class T> void __fastcall
DHwpParameterArrayDispT<T>::SetItem(long index, VARIANT value)
{
  _TDispID _dispid(*this, OLETEXT("SetItem"), DISPID(6));
  TAutoArgs<2> _args;
  _args[1] = index /*[VT_I4:0]*/;
  _args[2] = value /*[VT_VARIANT:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> LPDISPATCH __fastcall
DHwpParameterArrayDispT<T>::Clone()
{
  _TDispID _dispid(*this, OLETEXT("Clone"), DISPID(3));
  TAutoArgs<0> _args;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpParameterArrayDispT<T>::Copy(LPDISPATCH srcarray)
{
  _TDispID _dispid(*this, OLETEXT("Copy"), DISPID(4));
  TAutoArgs<1> _args;
  _args[1] = srcarray /*[VT_DISPATCH:0]*/;
  OleProcedure(_dispid, _args);
}

template <class T> VARIANT __fastcall
DHwpParameterArrayDispT<T>::Item(long index)
{
  _TDispID _dispid(*this, OLETEXT("Item"), DISPID(5));
  TAutoArgs<1> _args;
  _args[1] = index /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpParameterArrayDispT<T>::set_IsSet(VARIANT_BOOL /*[VT_BOOL:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("IsSet"), DISPID(2));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> VARIANT_BOOL /*[VT_BOOL:0]*/ __fastcall
DHwpParameterArrayDispT<T>::get_IsSet()
{
  _TDispID _dispid(*this, OLETEXT("IsSet"), DISPID(2));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpParameterArrayDispT<T>::set_Count(long /*[VT_I4:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("Count"), DISPID(1));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> long /*[VT_I4:0]*/ __fastcall
DHwpParameterArrayDispT<T>::get_Count()
{
  _TDispID _dispid(*this, OLETEXT("Count"), DISPID(1));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

// *********************************************************************//
// DispIntf:  DHwpCtrlCode
// Flags:     (4096) Dispatchable
// GUID:      {39E84D56-02DA-4AB0-B0C9-4F8AD94E3DF6}
// *********************************************************************//
template <class T> LPDISPATCH __fastcall
DHwpCtrlCodeDispT<T>::GetAnchorPos(long type)
{
  _TDispID _dispid(*this, OLETEXT("GetAnchorPos"), DISPID(15001));
  TAutoArgs<1> _args;
  _args[1] = type /*[VT_I4:0]*/;
  OleFunction(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpCtrlCodeDispT<T>::set_CtrlCh(short /*[VT_I2:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("CtrlCh"), DISPID(1));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> short /*[VT_I2:0]*/ __fastcall
DHwpCtrlCodeDispT<T>::get_CtrlCh()
{
  _TDispID _dispid(*this, OLETEXT("CtrlCh"), DISPID(1));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpCtrlCodeDispT<T>::set_ctrlid(BSTR /*[VT_BSTR:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("ctrlid"), DISPID(2));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> BSTR /*[VT_BSTR:0]*/ __fastcall
DHwpCtrlCodeDispT<T>::get_ctrlid()
{
  _TDispID _dispid(*this, OLETEXT("ctrlid"), DISPID(2));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpCtrlCodeDispT<T>::set_Next(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("Next"), DISPID(3));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
DHwpCtrlCodeDispT<T>::get_Next()
{
  _TDispID _dispid(*this, OLETEXT("Next"), DISPID(3));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpCtrlCodeDispT<T>::set_Properties(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("Properties"), DISPID(5));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
DHwpCtrlCodeDispT<T>::get_Properties()
{
  _TDispID _dispid(*this, OLETEXT("Properties"), DISPID(5));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpCtrlCodeDispT<T>::set_UserDesc(BSTR /*[VT_BSTR:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("UserDesc"), DISPID(6));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> BSTR /*[VT_BSTR:0]*/ __fastcall
DHwpCtrlCodeDispT<T>::get_UserDesc()
{
  _TDispID _dispid(*this, OLETEXT("UserDesc"), DISPID(6));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

template <class T> void __fastcall
DHwpCtrlCodeDispT<T>::set_Prev(LPDISPATCH /*[VT_DISPATCH:0]*/ Value)
{
  _TDispID _dispid(*this, OLETEXT("Prev"), DISPID(4));
  TAutoArgs<1> _args;
  _args[1] = Value;
  OlePropertyPut(_dispid, _args);
}

template <class T> LPDISPATCH /*[VT_DISPATCH:0]*/ __fastcall
DHwpCtrlCodeDispT<T>::get_Prev()
{
  _TDispID _dispid(*this, OLETEXT("Prev"), DISPID(4));
  TAutoArgs<0> _args;
  OlePropertyGet(_dispid, _args);
  return _args.GetRetVariant();
}

// *********************************************************************//
// The following typedefs expose classes (named CoCoClassName) that       
// provide static Create() and CreateRemote(LPWSTR machineName) methods   
// for creating an instance of an exposed object. These functions can     
// be used by client wishing to automate CoClasses exposed by this        
// typelibrary.                                                           
// *********************************************************************//

// *********************************************************************//
// COCLASS DEFAULT INTERFACE CREATOR
// CoClass  : HwpAction
// Interface: DHwpActionDisp
// *********************************************************************//
typedef TCoClassCreatorT<DHwpActionDisp, DHwpAction, &CLSID_HwpAction, &DIID_DHwpAction> CoHwpAction;

// *********************************************************************//
// COCLASS DEFAULT INTERFACE CREATOR
// CoClass  : HwpParameterSet
// Interface: DHwpParameterSetDisp
// *********************************************************************//
typedef TCoClassCreatorT<DHwpParameterSetDisp, DHwpParameterSet, &CLSID_HwpParameterSet, &DIID_DHwpParameterSet> CoHwpParameterSet;

// *********************************************************************//
// COCLASS DEFAULT INTERFACE CREATOR
// CoClass  : HwpParameterArray
// Interface: DHwpParameterArrayDisp
// *********************************************************************//
typedef TCoClassCreatorT<DHwpParameterArrayDisp, DHwpParameterArray, &CLSID_HwpParameterArray, &DIID_DHwpParameterArray> CoHwpParameterArray;

// *********************************************************************//
// COCLASS DEFAULT INTERFACE CREATOR
// CoClass  : HwpCtrlCode
// Interface: DHwpCtrlCodeDisp
// *********************************************************************//
typedef TCoClassCreatorT<DHwpCtrlCodeDisp, DHwpCtrlCode, &CLSID_HwpCtrlCode, &DIID_DHwpCtrlCode> CoHwpCtrlCode;
#endif  //   __TLB_NO_INTERFACE_WRAPPERS


#if !defined(__TLB_NO_EVENT_WRAPPERS) && defined(USING_ATLVCL)
// *********************************************************************//
// CONNECTIONPOINT/EVENT PROXY
// CoClass         : HwpCtrl
// Event Interface : _DHwpCtrlEvents
// *********************************************************************//
template <class T>
class TEvents_HwpCtrl : public IConnectionPointImpl<T,
                                                 &DIID__DHwpCtrlEvents,
#if !defined(_TLB_DYNAMIC_CONNECTIONPOINT_ARRAY)
                                                 CComUnkArray<CONNECTIONPOINT_ARRAY_SIZE> >
#else
                                                 CComDynamicArray>
#endif
{
public:
  void            Fire_NotifyMessage(BSTR Msg, long WParam, long LParam);
  void            Fire_OnMouseLButtonDown(long x, long y);
  void            Fire_OnScroll(long WParam, long LParam);
protected:
  _DHwpCtrlEventsDisp m_EventIntfObj;
};

template <class T> void
TEvents_HwpCtrl<T>::Fire_NotifyMessage(BSTR Msg, long WParam, long LParam)
{
  T * pT = (T*)this;
  pT->Lock();
  IUnknown ** pp = m_vec.begin();
  while (pp < m_vec.end())
  {
    if (*pp != NULL)
    {
      m_EventIntfObj.Attach(*pp);
      m_EventIntfObj.NotifyMessage(Msg, WParam, LParam);
      m_EventIntfObj.Attach(0);
    }
    pp++;
  }
  pT->Unlock();
}

template <class T> void
TEvents_HwpCtrl<T>::Fire_OnMouseLButtonDown(long x, long y)
{
  T * pT = (T*)this;
  pT->Lock();
  IUnknown ** pp = m_vec.begin();
  while (pp < m_vec.end())
  {
    if (*pp != NULL)
    {
      m_EventIntfObj.Attach(*pp);
      m_EventIntfObj.OnMouseLButtonDown(x, y);
      m_EventIntfObj.Attach(0);
    }
    pp++;
  }
  pT->Unlock();
}

template <class T> void
TEvents_HwpCtrl<T>::Fire_OnScroll(long WParam, long LParam)
{
  T * pT = (T*)this;
  pT->Lock();
  IUnknown ** pp = m_vec.begin();
  while (pp < m_vec.end())
  {
    if (*pp != NULL)
    {
      m_EventIntfObj.Attach(*pp);
      m_EventIntfObj.OnScroll(WParam, LParam);
      m_EventIntfObj.Attach(0);
    }
    pp++;
  }
  pT->Unlock();
}

#endif  //   __TLB_NO_EVENT_WRAPPERS

};     // namespace Hwpcontrollib_tlb

#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using  namespace Hwpcontrollib_tlb;
#endif

#pragma option pop

#endif // HWPCONTROLLib_TLBH
