Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version
Go to top

Create a Universal Document Template which supports Dynamic Frame Window Layout

, 14 Dec 2002
Introduce a programming technology to design a very complex, rich document type.
visualframework_src.zip
sample
ObjManager
res
ObjManager.manifest
VisualFrameWork
application.rgs
AtlForm.rgs
Board.rgs
DocumentCtrl.rgs
Documents.rgs
menuimg.bmp
Prairie Wind.bmp
res
Toolbar.bmp
VisualFrameWork.ico
VisualFrameWork.manifest
VisualFrameWorkDoc.ico
VisualFrameWork.rgs
VisualFrameWork.tlb
VisualFrameWork1
VisualFrameWork12
VisualFrameWork13
Demo1
Demo2
MfcViewLib
MfcViewLib.rgs
cnn.rgs
MfcViewLib.def
MfcViewLibps.def
AtlView2.rgs
AtlView3.rgs
vc70.tlb
VbComLib
VbComLib.vbproj.user
VCSharpComLib
VCSharpComLib.csproj.user
DemoDoc
Demo1
Demo2
Demo3
DocumentPropertyPage.rgs
New Document 2
New Document333
New Document 2dd
VBDoc
UD.dob
prjVBDoc.vbp
MSSCCPRJ.SCC
prjVBDoc.vbw
CNN
MSSCCPRJ.SCC
PrjCnn.vbw
PrjCnn.dll
PrjCnn.lib
PrjCnn.exp
cls.cls
PrjCnn.vbp
#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 6.00.0347 */
/* at Mon Dec 16 21:31:20 2002
 */
/* Compiler settings for VisualFrameWork.idl:
    Os, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __VisualFrameWork_i_h__
#define __VisualFrameWork_i_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __IApplication_FWD_DEFINED__
#define __IApplication_FWD_DEFINED__
typedef interface IApplication IApplication;
#endif 	/* __IApplication_FWD_DEFINED__ */


#ifndef __IDocument_FWD_DEFINED__
#define __IDocument_FWD_DEFINED__
typedef interface IDocument IDocument;
#endif 	/* __IDocument_FWD_DEFINED__ */


#ifndef ___IApplicationEvents_FWD_DEFINED__
#define ___IApplicationEvents_FWD_DEFINED__
typedef interface _IApplicationEvents _IApplicationEvents;
#endif 	/* ___IApplicationEvents_FWD_DEFINED__ */


#ifndef __Application_FWD_DEFINED__
#define __Application_FWD_DEFINED__

#ifdef __cplusplus
typedef class Application Application;
#else
typedef struct Application Application;
#endif /* __cplusplus */

#endif 	/* __Application_FWD_DEFINED__ */


#ifndef ___IDocumentEvents_FWD_DEFINED__
#define ___IDocumentEvents_FWD_DEFINED__
typedef interface _IDocumentEvents _IDocumentEvents;
#endif 	/* ___IDocumentEvents_FWD_DEFINED__ */


#ifndef __Document_FWD_DEFINED__
#define __Document_FWD_DEFINED__

#ifdef __cplusplus
typedef class Document Document;
#else
typedef struct Document Document;
#endif /* __cplusplus */

#endif 	/* __Document_FWD_DEFINED__ */


#ifndef __IDocuments_FWD_DEFINED__
#define __IDocuments_FWD_DEFINED__
typedef interface IDocuments IDocuments;
#endif 	/* __IDocuments_FWD_DEFINED__ */


#ifndef __Documents_FWD_DEFINED__
#define __Documents_FWD_DEFINED__

#ifdef __cplusplus
typedef class Documents Documents;
#else
typedef struct Documents Documents;
#endif /* __cplusplus */

#endif 	/* __Documents_FWD_DEFINED__ */


#ifndef __ITangramWindow_FWD_DEFINED__
#define __ITangramWindow_FWD_DEFINED__
typedef interface ITangramWindow ITangramWindow;
#endif 	/* __ITangramWindow_FWD_DEFINED__ */


#ifndef __TangramWindow_FWD_DEFINED__
#define __TangramWindow_FWD_DEFINED__

#ifdef __cplusplus
typedef class TangramWindow TangramWindow;
#else
typedef struct TangramWindow TangramWindow;
#endif /* __cplusplus */

#endif 	/* __TangramWindow_FWD_DEFINED__ */


#ifndef __IAtlForm_FWD_DEFINED__
#define __IAtlForm_FWD_DEFINED__
typedef interface IAtlForm IAtlForm;
#endif 	/* __IAtlForm_FWD_DEFINED__ */


#ifndef ___IAtlFormEvents_FWD_DEFINED__
#define ___IAtlFormEvents_FWD_DEFINED__
typedef interface _IAtlFormEvents _IAtlFormEvents;
#endif 	/* ___IAtlFormEvents_FWD_DEFINED__ */


#ifndef __AtlForm_FWD_DEFINED__
#define __AtlForm_FWD_DEFINED__

#ifdef __cplusplus
typedef class AtlForm AtlForm;
#else
typedef struct AtlForm AtlForm;
#endif /* __cplusplus */

#endif 	/* __AtlForm_FWD_DEFINED__ */


#ifndef __DocumentPropertyPage_FWD_DEFINED__
#define __DocumentPropertyPage_FWD_DEFINED__

#ifdef __cplusplus
typedef class DocumentPropertyPage DocumentPropertyPage;
#else
typedef struct DocumentPropertyPage DocumentPropertyPage;
#endif /* __cplusplus */

#endif 	/* __DocumentPropertyPage_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 

void * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void * ); 


#ifndef __VisualFrameWorkLib_LIBRARY_DEFINED__
#define __VisualFrameWorkLib_LIBRARY_DEFINED__

/* library VisualFrameWorkLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_VisualFrameWorkLib;

#ifndef __IApplication_INTERFACE_DEFINED__
#define __IApplication_INTERFACE_DEFINED__

/* interface IApplication */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_IApplication;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("6D47F54A-3D8C-497E-9556-DD615F1592C7")
    IApplication : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OpenDoc( 
            /* [in] */ BSTR bstrDocName) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IApplicationVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IApplication * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IApplication * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IApplication * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IApplication * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IApplication * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IApplication * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IApplication * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OpenDoc )( 
            IApplication * This,
            /* [in] */ BSTR bstrDocName);
        
        END_INTERFACE
    } IApplicationVtbl;

    interface IApplication
    {
        CONST_VTBL struct IApplicationVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IApplication_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IApplication_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IApplication_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IApplication_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IApplication_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IApplication_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IApplication_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IApplication_OpenDoc(This,bstrDocName)	\
    (This)->lpVtbl -> OpenDoc(This,bstrDocName)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IApplication_OpenDoc_Proxy( 
    IApplication * This,
    /* [in] */ BSTR bstrDocName);


void __RPC_STUB IApplication_OpenDoc_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IApplication_INTERFACE_DEFINED__ */


#ifndef __IDocument_INTERFACE_DEFINED__
#define __IDocument_INTERFACE_DEFINED__

/* interface IDocument */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_IDocument;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("F2F1AD64-6520-4D80-A583-3B584DE2FD8C")
    IDocument : public IDispatch
    {
    public:
        virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Text( 
            /* [in] */ BSTR strText) = 0;
        
        virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Text( 
            /* [retval][out] */ BSTR *pstrText) = 0;
        
        virtual /* [hidden][id][propput] */ HRESULT STDMETHODCALLTYPE put_Caption( 
            /* [in] */ BSTR strCaption) = 0;
        
        virtual /* [hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_Caption( 
            /* [retval][out] */ BSTR *pstrCaption) = 0;
        
        virtual /* [id][propputref] */ HRESULT STDMETHODCALLTYPE putref_Picture( 
            /* [in] */ IPictureDisp *pPicture) = 0;
        
        virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Picture( 
            /* [in] */ IPictureDisp *pPicture) = 0;
        
        virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Picture( 
            /* [retval][out] */ IPictureDisp **ppPicture) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ObjectX( 
            /* [in] */ BSTR ObjName,
            /* [retval][out] */ IDispatch **pVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DocTitle( 
            /* [retval][out] */ BSTR *pVal) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DocTitle( 
            /* [in] */ BSTR newVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MfcObjectX( 
            BSTR ObjName,
            /* [retval][out] */ long *pVal) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateSplitter( 
            /* [in] */ BSTR RowCount,
            /* [in] */ BSTR ColCount,
            /* [in] */ BSTR bstrTitle,
            /* [in] */ BSTR bDocking) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DocProperty( void) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateActiveItem( 
            /* [in] */ BSTR bstrClsID,
            /* [in] */ BSTR bstrName) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateTabWnd( 
            /* [in] */ BSTR bstrClsID,
            /* [in] */ BSTR bstrCaption,
            /* [in] */ BSTR bstrObjName) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateDockBar( 
            /* [in] */ BSTR bstrCaption) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteSplitter( void) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteTabWnd( void) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteTabPage( 
            /* [in] */ long nTabIndex) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE AddPage( 
            /* [in] */ long nPageIndex,
            /* [in] */ BSTR bstrTitle,
            /* [in] */ long nImageIndex) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IDocumentVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IDocument * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IDocument * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IDocument * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IDocument * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IDocument * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IDocument * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IDocument * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Text )( 
            IDocument * This,
            /* [in] */ BSTR strText);
        
        /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Text )( 
            IDocument * This,
            /* [retval][out] */ BSTR *pstrText);
        
        /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Caption )( 
            IDocument * This,
            /* [in] */ BSTR strCaption);
        
        /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Caption )( 
            IDocument * This,
            /* [retval][out] */ BSTR *pstrCaption);
        
        /* [id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Picture )( 
            IDocument * This,
            /* [in] */ IPictureDisp *pPicture);
        
        /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Picture )( 
            IDocument * This,
            /* [in] */ IPictureDisp *pPicture);
        
        /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Picture )( 
            IDocument * This,
            /* [retval][out] */ IPictureDisp **ppPicture);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectX )( 
            IDocument * This,
            /* [in] */ BSTR ObjName,
            /* [retval][out] */ IDispatch **pVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocTitle )( 
            IDocument * This,
            /* [retval][out] */ BSTR *pVal);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DocTitle )( 
            IDocument * This,
            /* [in] */ BSTR newVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MfcObjectX )( 
            IDocument * This,
            BSTR ObjName,
            /* [retval][out] */ long *pVal);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateSplitter )( 
            IDocument * This,
            /* [in] */ BSTR RowCount,
            /* [in] */ BSTR ColCount,
            /* [in] */ BSTR bstrTitle,
            /* [in] */ BSTR bDocking);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DocProperty )( 
            IDocument * This);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateActiveItem )( 
            IDocument * This,
            /* [in] */ BSTR bstrClsID,
            /* [in] */ BSTR bstrName);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTabWnd )( 
            IDocument * This,
            /* [in] */ BSTR bstrClsID,
            /* [in] */ BSTR bstrCaption,
            /* [in] */ BSTR bstrObjName);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateDockBar )( 
            IDocument * This,
            /* [in] */ BSTR bstrCaption);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteSplitter )( 
            IDocument * This);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteTabWnd )( 
            IDocument * This);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteTabPage )( 
            IDocument * This,
            /* [in] */ long nTabIndex);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddPage )( 
            IDocument * This,
            /* [in] */ long nPageIndex,
            /* [in] */ BSTR bstrTitle,
            /* [in] */ long nImageIndex);
        
        END_INTERFACE
    } IDocumentVtbl;

    interface IDocument
    {
        CONST_VTBL struct IDocumentVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IDocument_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IDocument_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IDocument_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IDocument_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IDocument_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IDocument_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IDocument_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IDocument_put_Text(This,strText)	\
    (This)->lpVtbl -> put_Text(This,strText)

#define IDocument_get_Text(This,pstrText)	\
    (This)->lpVtbl -> get_Text(This,pstrText)

#define IDocument_put_Caption(This,strCaption)	\
    (This)->lpVtbl -> put_Caption(This,strCaption)

#define IDocument_get_Caption(This,pstrCaption)	\
    (This)->lpVtbl -> get_Caption(This,pstrCaption)

#define IDocument_putref_Picture(This,pPicture)	\
    (This)->lpVtbl -> putref_Picture(This,pPicture)

#define IDocument_put_Picture(This,pPicture)	\
    (This)->lpVtbl -> put_Picture(This,pPicture)

#define IDocument_get_Picture(This,ppPicture)	\
    (This)->lpVtbl -> get_Picture(This,ppPicture)

#define IDocument_get_ObjectX(This,ObjName,pVal)	\
    (This)->lpVtbl -> get_ObjectX(This,ObjName,pVal)

#define IDocument_get_DocTitle(This,pVal)	\
    (This)->lpVtbl -> get_DocTitle(This,pVal)

#define IDocument_put_DocTitle(This,newVal)	\
    (This)->lpVtbl -> put_DocTitle(This,newVal)

#define IDocument_get_MfcObjectX(This,ObjName,pVal)	\
    (This)->lpVtbl -> get_MfcObjectX(This,ObjName,pVal)

#define IDocument_CreateSplitter(This,RowCount,ColCount,bstrTitle,bDocking)	\
    (This)->lpVtbl -> CreateSplitter(This,RowCount,ColCount,bstrTitle,bDocking)

#define IDocument_DocProperty(This)	\
    (This)->lpVtbl -> DocProperty(This)

#define IDocument_CreateActiveItem(This,bstrClsID,bstrName)	\
    (This)->lpVtbl -> CreateActiveItem(This,bstrClsID,bstrName)

#define IDocument_CreateTabWnd(This,bstrClsID,bstrCaption,bstrObjName)	\
    (This)->lpVtbl -> CreateTabWnd(This,bstrClsID,bstrCaption,bstrObjName)

#define IDocument_CreateDockBar(This,bstrCaption)	\
    (This)->lpVtbl -> CreateDockBar(This,bstrCaption)

#define IDocument_DeleteSplitter(This)	\
    (This)->lpVtbl -> DeleteSplitter(This)

#define IDocument_DeleteTabWnd(This)	\
    (This)->lpVtbl -> DeleteTabWnd(This)

#define IDocument_DeleteTabPage(This,nTabIndex)	\
    (This)->lpVtbl -> DeleteTabPage(This,nTabIndex)

#define IDocument_AddPage(This,nPageIndex,bstrTitle,nImageIndex)	\
    (This)->lpVtbl -> AddPage(This,nPageIndex,bstrTitle,nImageIndex)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [id][propput] */ HRESULT STDMETHODCALLTYPE IDocument_put_Text_Proxy( 
    IDocument * This,
    /* [in] */ BSTR strText);


void __RPC_STUB IDocument_put_Text_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id][propget] */ HRESULT STDMETHODCALLTYPE IDocument_get_Text_Proxy( 
    IDocument * This,
    /* [retval][out] */ BSTR *pstrText);


void __RPC_STUB IDocument_get_Text_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][id][propput] */ HRESULT STDMETHODCALLTYPE IDocument_put_Caption_Proxy( 
    IDocument * This,
    /* [in] */ BSTR strCaption);


void __RPC_STUB IDocument_put_Caption_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IDocument_get_Caption_Proxy( 
    IDocument * This,
    /* [retval][out] */ BSTR *pstrCaption);


void __RPC_STUB IDocument_get_Caption_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id][propputref] */ HRESULT STDMETHODCALLTYPE IDocument_putref_Picture_Proxy( 
    IDocument * This,
    /* [in] */ IPictureDisp *pPicture);


void __RPC_STUB IDocument_putref_Picture_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id][propput] */ HRESULT STDMETHODCALLTYPE IDocument_put_Picture_Proxy( 
    IDocument * This,
    /* [in] */ IPictureDisp *pPicture);


void __RPC_STUB IDocument_put_Picture_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id][propget] */ HRESULT STDMETHODCALLTYPE IDocument_get_Picture_Proxy( 
    IDocument * This,
    /* [retval][out] */ IPictureDisp **ppPicture);


void __RPC_STUB IDocument_get_Picture_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDocument_get_ObjectX_Proxy( 
    IDocument * This,
    /* [in] */ BSTR ObjName,
    /* [retval][out] */ IDispatch **pVal);


void __RPC_STUB IDocument_get_ObjectX_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDocument_get_DocTitle_Proxy( 
    IDocument * This,
    /* [retval][out] */ BSTR *pVal);


void __RPC_STUB IDocument_get_DocTitle_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDocument_put_DocTitle_Proxy( 
    IDocument * This,
    /* [in] */ BSTR newVal);


void __RPC_STUB IDocument_put_DocTitle_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDocument_get_MfcObjectX_Proxy( 
    IDocument * This,
    BSTR ObjName,
    /* [retval][out] */ long *pVal);


void __RPC_STUB IDocument_get_MfcObjectX_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_CreateSplitter_Proxy( 
    IDocument * This,
    /* [in] */ BSTR RowCount,
    /* [in] */ BSTR ColCount,
    /* [in] */ BSTR bstrTitle,
    /* [in] */ BSTR bDocking);


void __RPC_STUB IDocument_CreateSplitter_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_DocProperty_Proxy( 
    IDocument * This);


void __RPC_STUB IDocument_DocProperty_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_CreateActiveItem_Proxy( 
    IDocument * This,
    /* [in] */ BSTR bstrClsID,
    /* [in] */ BSTR bstrName);


void __RPC_STUB IDocument_CreateActiveItem_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_CreateTabWnd_Proxy( 
    IDocument * This,
    /* [in] */ BSTR bstrClsID,
    /* [in] */ BSTR bstrCaption,
    /* [in] */ BSTR bstrObjName);


void __RPC_STUB IDocument_CreateTabWnd_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_CreateDockBar_Proxy( 
    IDocument * This,
    /* [in] */ BSTR bstrCaption);


void __RPC_STUB IDocument_CreateDockBar_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_DeleteSplitter_Proxy( 
    IDocument * This);


void __RPC_STUB IDocument_DeleteSplitter_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_DeleteTabWnd_Proxy( 
    IDocument * This);


void __RPC_STUB IDocument_DeleteTabWnd_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_DeleteTabPage_Proxy( 
    IDocument * This,
    /* [in] */ long nTabIndex);


void __RPC_STUB IDocument_DeleteTabPage_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocument_AddPage_Proxy( 
    IDocument * This,
    /* [in] */ long nPageIndex,
    /* [in] */ BSTR bstrTitle,
    /* [in] */ long nImageIndex);


void __RPC_STUB IDocument_AddPage_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IDocument_INTERFACE_DEFINED__ */


#ifndef ___IApplicationEvents_DISPINTERFACE_DEFINED__
#define ___IApplicationEvents_DISPINTERFACE_DEFINED__

/* dispinterface _IApplicationEvents */
/* [helpstring][uuid] */ 


EXTERN_C const IID DIID__IApplicationEvents;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("5CD5A9DA-5FB1-42F7-A441-48F29F092C01")
    _IApplicationEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */

    typedef struct _IApplicationEventsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            _IApplicationEvents * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            _IApplicationEvents * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            _IApplicationEvents * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            _IApplicationEvents * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            _IApplicationEvents * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            _IApplicationEvents * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            _IApplicationEvents * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        END_INTERFACE
    } _IApplicationEventsVtbl;

    interface _IApplicationEvents
    {
        CONST_VTBL struct _IApplicationEventsVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define _IApplicationEvents_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define _IApplicationEvents_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define _IApplicationEvents_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define _IApplicationEvents_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define _IApplicationEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define _IApplicationEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define _IApplicationEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)

#endif /* COBJMACROS */


#endif 	/* C style interface */


#endif 	/* ___IApplicationEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_Application;

#ifdef __cplusplus

class DECLSPEC_UUID("63699509-59FD-4AFE-8B37-06E123F0D776")
Application;
#endif

#ifndef ___IDocumentEvents_DISPINTERFACE_DEFINED__
#define ___IDocumentEvents_DISPINTERFACE_DEFINED__

/* dispinterface _IDocumentEvents */
/* [helpstring][uuid] */ 


EXTERN_C const IID DIID__IDocumentEvents;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("A6DFAD18-441F-47E0-961C-755282E63B5D")
    _IDocumentEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */

    typedef struct _IDocumentEventsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            _IDocumentEvents * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            _IDocumentEvents * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            _IDocumentEvents * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            _IDocumentEvents * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            _IDocumentEvents * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            _IDocumentEvents * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            _IDocumentEvents * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        END_INTERFACE
    } _IDocumentEventsVtbl;

    interface _IDocumentEvents
    {
        CONST_VTBL struct _IDocumentEventsVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define _IDocumentEvents_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define _IDocumentEvents_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define _IDocumentEvents_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define _IDocumentEvents_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define _IDocumentEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define _IDocumentEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define _IDocumentEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)

#endif /* COBJMACROS */


#endif 	/* C style interface */


#endif 	/* ___IDocumentEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_Document;

#ifdef __cplusplus

class DECLSPEC_UUID("DD14E225-65A1-44C9-897F-A8BFA2A99810")
Document;
#endif

#ifndef __IDocuments_INTERFACE_DEFINED__
#define __IDocuments_INTERFACE_DEFINED__

/* interface IDocuments */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_IDocuments;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("619E897E-3847-436E-A84F-1625CDACCA3D")
    IDocuments : public IDispatch
    {
    public:
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( 
            /* [retval][out] */ long *pVal) = 0;
        
        virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( 
            /* [retval][out] */ IUnknown **pVal) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item( 
            /* [in] */ VARIANT Index,
            /* [retval][out] */ IDocument **ppVal) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Open( 
            /* [in] */ BSTR FileName,
            /* [retval][out] */ IDocument **ppVal) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( 
            /* [retval][out] */ IDocument **ppVal) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE Connect( 
            /* [in] */ long TangramServerObj) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IDocumentsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IDocuments * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IDocuments * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IDocuments * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IDocuments * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IDocuments * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IDocuments * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IDocuments * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( 
            IDocuments * This,
            /* [retval][out] */ long *pVal);
        
        /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( 
            IDocuments * This,
            /* [retval][out] */ IUnknown **pVal);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )( 
            IDocuments * This,
            /* [in] */ VARIANT Index,
            /* [retval][out] */ IDocument **ppVal);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( 
            IDocuments * This,
            /* [in] */ BSTR FileName,
            /* [retval][out] */ IDocument **ppVal);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( 
            IDocuments * This,
            /* [retval][out] */ IDocument **ppVal);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Connect )( 
            IDocuments * This,
            /* [in] */ long TangramServerObj);
        
        END_INTERFACE
    } IDocumentsVtbl;

    interface IDocuments
    {
        CONST_VTBL struct IDocumentsVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IDocuments_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IDocuments_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IDocuments_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IDocuments_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IDocuments_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IDocuments_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IDocuments_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IDocuments_get_Count(This,pVal)	\
    (This)->lpVtbl -> get_Count(This,pVal)

#define IDocuments_get__NewEnum(This,pVal)	\
    (This)->lpVtbl -> get__NewEnum(This,pVal)

#define IDocuments_Item(This,Index,ppVal)	\
    (This)->lpVtbl -> Item(This,Index,ppVal)

#define IDocuments_Open(This,FileName,ppVal)	\
    (This)->lpVtbl -> Open(This,FileName,ppVal)

#define IDocuments_Add(This,ppVal)	\
    (This)->lpVtbl -> Add(This,ppVal)

#define IDocuments_Connect(This,TangramServerObj)	\
    (This)->lpVtbl -> Connect(This,TangramServerObj)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDocuments_get_Count_Proxy( 
    IDocuments * This,
    /* [retval][out] */ long *pVal);


void __RPC_STUB IDocuments_get_Count_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDocuments_get__NewEnum_Proxy( 
    IDocuments * This,
    /* [retval][out] */ IUnknown **pVal);


void __RPC_STUB IDocuments_get__NewEnum_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocuments_Item_Proxy( 
    IDocuments * This,
    /* [in] */ VARIANT Index,
    /* [retval][out] */ IDocument **ppVal);


void __RPC_STUB IDocuments_Item_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocuments_Open_Proxy( 
    IDocuments * This,
    /* [in] */ BSTR FileName,
    /* [retval][out] */ IDocument **ppVal);


void __RPC_STUB IDocuments_Open_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocuments_Add_Proxy( 
    IDocuments * This,
    /* [retval][out] */ IDocument **ppVal);


void __RPC_STUB IDocuments_Add_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IDocuments_Connect_Proxy( 
    IDocuments * This,
    /* [in] */ long TangramServerObj);


void __RPC_STUB IDocuments_Connect_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IDocuments_INTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_Documents;

#ifdef __cplusplus

class DECLSPEC_UUID("5973144C-C9EC-4F71-BB3F-2816F410CE52")
Documents;
#endif

#ifndef __ITangramWindow_INTERFACE_DEFINED__
#define __ITangramWindow_INTERFACE_DEFINED__

/* interface ITangramWindow */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_ITangramWindow;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("4CC76E18-6BEA-4D0F-B9BB-B1D9AF27800E")
    ITangramWindow : public IDispatch
    {
    public:
        virtual /* [id][propputref] */ HRESULT STDMETHODCALLTYPE putref_Picture( 
            /* [in] */ IPictureDisp *pPicture) = 0;
        
        virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Picture( 
            /* [in] */ IPictureDisp *pPicture) = 0;
        
        virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Picture( 
            /* [retval][out] */ IPictureDisp **ppPicture) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct ITangramWindowVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ITangramWindow * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ITangramWindow * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ITangramWindow * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            ITangramWindow * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            ITangramWindow * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            ITangramWindow * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            ITangramWindow * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Picture )( 
            ITangramWindow * This,
            /* [in] */ IPictureDisp *pPicture);
        
        /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Picture )( 
            ITangramWindow * This,
            /* [in] */ IPictureDisp *pPicture);
        
        /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Picture )( 
            ITangramWindow * This,
            /* [retval][out] */ IPictureDisp **ppPicture);
        
        END_INTERFACE
    } ITangramWindowVtbl;

    interface ITangramWindow
    {
        CONST_VTBL struct ITangramWindowVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ITangramWindow_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define ITangramWindow_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define ITangramWindow_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define ITangramWindow_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define ITangramWindow_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define ITangramWindow_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define ITangramWindow_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define ITangramWindow_putref_Picture(This,pPicture)	\
    (This)->lpVtbl -> putref_Picture(This,pPicture)

#define ITangramWindow_put_Picture(This,pPicture)	\
    (This)->lpVtbl -> put_Picture(This,pPicture)

#define ITangramWindow_get_Picture(This,ppPicture)	\
    (This)->lpVtbl -> get_Picture(This,ppPicture)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [id][propputref] */ HRESULT STDMETHODCALLTYPE ITangramWindow_putref_Picture_Proxy( 
    ITangramWindow * This,
    /* [in] */ IPictureDisp *pPicture);


void __RPC_STUB ITangramWindow_putref_Picture_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id][propput] */ HRESULT STDMETHODCALLTYPE ITangramWindow_put_Picture_Proxy( 
    ITangramWindow * This,
    /* [in] */ IPictureDisp *pPicture);


void __RPC_STUB ITangramWindow_put_Picture_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITangramWindow_get_Picture_Proxy( 
    ITangramWindow * This,
    /* [retval][out] */ IPictureDisp **ppPicture);


void __RPC_STUB ITangramWindow_get_Picture_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __ITangramWindow_INTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_TangramWindow;

#ifdef __cplusplus

class DECLSPEC_UUID("8D5284DD-1CA5-4B85-884D-D9AC8A9BE8EA")
TangramWindow;
#endif

#ifndef __IAtlForm_INTERFACE_DEFINED__
#define __IAtlForm_INTERFACE_DEFINED__

/* interface IAtlForm */
/* [unique][helpstring][nonextensible][dual][uuid][object] */ 


EXTERN_C const IID IID_IAtlForm;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("E262846E-F39F-4873-AE76-DB66BD85E0DC")
    IAtlForm : public IDispatch
    {
    public:
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( 
            /* [retval][out] */ BSTR *pVal) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( 
            /* [in] */ BSTR newVal) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IAtlFormVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IAtlForm * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IAtlForm * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IAtlForm * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IAtlForm * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IAtlForm * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IAtlForm * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IAtlForm * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( 
            IAtlForm * This,
            /* [retval][out] */ BSTR *pVal);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( 
            IAtlForm * This,
            /* [in] */ BSTR newVal);
        
        END_INTERFACE
    } IAtlFormVtbl;

    interface IAtlForm
    {
        CONST_VTBL struct IAtlFormVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IAtlForm_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IAtlForm_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IAtlForm_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IAtlForm_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IAtlForm_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IAtlForm_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IAtlForm_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IAtlForm_get_Name(This,pVal)	\
    (This)->lpVtbl -> get_Name(This,pVal)

#define IAtlForm_put_Name(This,newVal)	\
    (This)->lpVtbl -> put_Name(This,newVal)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAtlForm_get_Name_Proxy( 
    IAtlForm * This,
    /* [retval][out] */ BSTR *pVal);


void __RPC_STUB IAtlForm_get_Name_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAtlForm_put_Name_Proxy( 
    IAtlForm * This,
    /* [in] */ BSTR newVal);


void __RPC_STUB IAtlForm_put_Name_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IAtlForm_INTERFACE_DEFINED__ */


#ifndef ___IAtlFormEvents_DISPINTERFACE_DEFINED__
#define ___IAtlFormEvents_DISPINTERFACE_DEFINED__

/* dispinterface _IAtlFormEvents */
/* [helpstring][uuid] */ 


EXTERN_C const IID DIID__IAtlFormEvents;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("2EC63354-2EBD-4108-9D69-D7F434533CF3")
    _IAtlFormEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */

    typedef struct _IAtlFormEventsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            _IAtlFormEvents * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            _IAtlFormEvents * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            _IAtlFormEvents * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            _IAtlFormEvents * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            _IAtlFormEvents * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            _IAtlFormEvents * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            _IAtlFormEvents * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        END_INTERFACE
    } _IAtlFormEventsVtbl;

    interface _IAtlFormEvents
    {
        CONST_VTBL struct _IAtlFormEventsVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define _IAtlFormEvents_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define _IAtlFormEvents_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define _IAtlFormEvents_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define _IAtlFormEvents_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define _IAtlFormEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define _IAtlFormEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define _IAtlFormEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)

#endif /* COBJMACROS */


#endif 	/* C style interface */


#endif 	/* ___IAtlFormEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_AtlForm;

#ifdef __cplusplus

class DECLSPEC_UUID("6CBA1654-09FA-4908-B0EC-5C50FCE73F86")
AtlForm;
#endif

EXTERN_C const CLSID CLSID_DocumentPropertyPage;

#ifdef __cplusplus

class DECLSPEC_UUID("70F4BE87-3401-46FD-843D-A8359E59E72E")
DocumentPropertyPage;
#endif
#endif /* __VisualFrameWorkLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

dean170
Web Developer
China China
No Biography provided

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 15 Dec 2002
Article Copyright 2002 by dean170
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid