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

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
#ifndef __IMfcWndContainer_INTERFACE_DEFINED__
#define __IMfcWndContainer_INTERFACE_DEFINED__

/* interface IMfcWndContainer */
/* [unique][helpstring][hidden][dual][uuid][object] */ 


EXTERN_C const IID IID_IMfcWndContainer;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("042FB2CB-3333-45EF-BC4E-12CC13B0BD03")
    IMfcWndContainer : 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;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetViewClsInfo( 
            /* [in] */ BSTR bstrIniMsg,
            /* [retval][out] */ long *ViewInfo) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE AddTab( 
            /* [in] */ long pWnd,
            /* [in] */ long nImageID,
            /* [in] */ BSTR TabTitle) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE SetTabWnd( 
            /* [in] */ long pWnd,
            /* [in] */ long nTabIndex) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetActiveTabIndex( 
            /* [retval][out] */ long *nTabIndex) = 0;
        
        virtual /* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetActiveTab( 
            /* [retval][out] */ long *nTabPane) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IMfcWndContainerVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IMfcWndContainer * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IMfcWndContainer * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IMfcWndContainer * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IMfcWndContainer * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IMfcWndContainer * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IMfcWndContainer * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IMfcWndContainer * 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 )( 
            IMfcWndContainer * This,
            /* [retval][out] */ BSTR *pVal);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( 
            IMfcWndContainer * This,
            /* [in] */ BSTR newVal);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetViewClsInfo )( 
            IMfcWndContainer * This,
            /* [in] */ BSTR bstrIniMsg,
            /* [retval][out] */ long *ViewInfo);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddTab )( 
            IMfcWndContainer * This,
            /* [in] */ long pWnd,
            /* [in] */ long nImageID,
            /* [in] */ BSTR TabTitle);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetTabWnd )( 
            IMfcWndContainer * This,
            /* [in] */ long pWnd,
            /* [in] */ long nTabIndex);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetActiveTabIndex )( 
            IMfcWndContainer * This,
            /* [retval][out] */ long *nTabIndex);
        
        /* [hidden][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetActiveTab )( 
            IMfcWndContainer * This,
            /* [retval][out] */ long *nTabPane);
        
        END_INTERFACE
    } IMfcWndContainerVtbl;

    interface IMfcWndContainer
    {
        CONST_VTBL struct IMfcWndContainerVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


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

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

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


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

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

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

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


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

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

#define IMfcWndContainer_GetViewClsInfo(This,bstrIniMsg,ViewInfo)	\
    (This)->lpVtbl -> GetViewClsInfo(This,bstrIniMsg,ViewInfo)

#define IMfcWndContainer_AddTab(This,pWnd,nImageID,TabTitle)	\
    (This)->lpVtbl -> AddTab(This,pWnd,nImageID,TabTitle)

#define IMfcWndContainer_SetTabWnd(This,pWnd,nTabIndex)	\
    (This)->lpVtbl -> SetTabWnd(This,pWnd,nTabIndex)

#define IMfcWndContainer_GetActiveTabIndex(This,nTabIndex)	\
    (This)->lpVtbl -> GetActiveTabIndex(This,nTabIndex)

#define IMfcWndContainer_GetActiveTab(This,nTabPane)	\
    (This)->lpVtbl -> GetActiveTab(This,nTabPane)

#endif /* COBJMACROS */


#endif 	/* C style interface */



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


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


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


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


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IMfcWndContainer_GetViewClsInfo_Proxy( 
    IMfcWndContainer * This,
    /* [in] */ BSTR bstrIniMsg,
    /* [retval][out] */ long *ViewInfo);


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


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IMfcWndContainer_AddTab_Proxy( 
    IMfcWndContainer * This,
    /* [in] */ long pWnd,
    /* [in] */ long nImageID,
    /* [in] */ BSTR TabTitle);


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


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IMfcWndContainer_SetTabWnd_Proxy( 
    IMfcWndContainer * This,
    /* [in] */ long pWnd,
    /* [in] */ long nTabIndex);


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


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IMfcWndContainer_GetActiveTabIndex_Proxy( 
    IMfcWndContainer * This,
    /* [retval][out] */ long *nTabIndex);


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


/* [hidden][helpstring][id] */ HRESULT STDMETHODCALLTYPE IMfcWndContainer_GetActiveTab_Proxy( 
    IMfcWndContainer * This,
    /* [retval][out] */ long *nTabPane);


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



#endif 	/* __IMfcWndContainer_INTERFACE_DEFINED__ */

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.140814.1 | Last Updated 15 Dec 2002
Article Copyright 2002 by dean170
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid