⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 atldice.h

📁 控件的相用的实现利用MFC实现相拥的控件
💻 H
字号:
/* this ALWAYS GENERATED file contains the definitions for the interfaces */


/* File created by MIDL compiler version 5.01.0164 */
/* at Fri Mar 30 19:55:24 2007
 */
/* Compiler settings for F:\VC课程设计\Fund10-控件编写\AtlDice.idl:
    Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
*/
//@@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 __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __AtlDice_h__
#define __AtlDice_h__

#ifdef __cplusplus
extern "C"{
#endif 

/* Forward Declarations */ 

#ifndef __IAtlDiceObj_FWD_DEFINED__
#define __IAtlDiceObj_FWD_DEFINED__
typedef interface IAtlDiceObj IAtlDiceObj;
#endif 	/* __IAtlDiceObj_FWD_DEFINED__ */


#ifndef ___IAtlDiceObjEvents_FWD_DEFINED__
#define ___IAtlDiceObjEvents_FWD_DEFINED__
typedef interface _IAtlDiceObjEvents _IAtlDiceObjEvents;
#endif 	/* ___IAtlDiceObjEvents_FWD_DEFINED__ */


#ifndef __AtlDiceObj_FWD_DEFINED__
#define __AtlDiceObj_FWD_DEFINED__

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

#endif 	/* __AtlDiceObj_FWD_DEFINED__ */


#ifndef __Atldiceprop_FWD_DEFINED__
#define __Atldiceprop_FWD_DEFINED__

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

#endif 	/* __Atldiceprop_FWD_DEFINED__ */


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

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

#ifndef __IAtlDiceObj_INTERFACE_DEFINED__
#define __IAtlDiceObj_INTERFACE_DEFINED__

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


EXTERN_C const IID IID_IAtlDiceObj;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("D72B946A-328D-49BB-BF35-E5C1D31E904D")
    IAtlDiceObj : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RollDice( void) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_m_nDiceColor( 
            /* [retval][out] */ short __RPC_FAR *pVal) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_m_nDiceColor( 
            /* [in] */ short newVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TimestoRoll( 
            /* [retval][out] */ short __RPC_FAR *pVal) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TimestoRoll( 
            /* [in] */ short newVal) = 0;
        
    };
    
#else 	/* C style interface */

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

    interface IAtlDiceObj
    {
        CONST_VTBL struct IAtlDiceObjVtbl __RPC_FAR *lpVtbl;
    };

    

#ifdef COBJMACROS


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

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

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


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

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

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

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


#define IAtlDiceObj_RollDice(This)	\
    (This)->lpVtbl -> RollDice(This)

#define IAtlDiceObj_get_m_nDiceColor(This,pVal)	\
    (This)->lpVtbl -> get_m_nDiceColor(This,pVal)

#define IAtlDiceObj_put_m_nDiceColor(This,newVal)	\
    (This)->lpVtbl -> put_m_nDiceColor(This,newVal)

#define IAtlDiceObj_get_TimestoRoll(This,pVal)	\
    (This)->lpVtbl -> get_TimestoRoll(This,pVal)

#define IAtlDiceObj_put_TimestoRoll(This,newVal)	\
    (This)->lpVtbl -> put_TimestoRoll(This,newVal)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IAtlDiceObj_RollDice_Proxy( 
    IAtlDiceObj __RPC_FAR * This);


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


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAtlDiceObj_get_m_nDiceColor_Proxy( 
    IAtlDiceObj __RPC_FAR * This,
    /* [retval][out] */ short __RPC_FAR *pVal);


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


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAtlDiceObj_put_m_nDiceColor_Proxy( 
    IAtlDiceObj __RPC_FAR * This,
    /* [in] */ short newVal);


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


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAtlDiceObj_get_TimestoRoll_Proxy( 
    IAtlDiceObj __RPC_FAR * This,
    /* [retval][out] */ short __RPC_FAR *pVal);


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


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAtlDiceObj_put_TimestoRoll_Proxy( 
    IAtlDiceObj __RPC_FAR * This,
    /* [in] */ short newVal);


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



#endif 	/* __IAtlDiceObj_INTERFACE_DEFINED__ */



#ifndef __ATLDICELib_LIBRARY_DEFINED__
#define __ATLDICELib_LIBRARY_DEFINED__

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


EXTERN_C const IID LIBID_ATLDICELib;

#ifndef ___IAtlDiceObjEvents_DISPINTERFACE_DEFINED__
#define ___IAtlDiceObjEvents_DISPINTERFACE_DEFINED__

/* dispinterface _IAtlDiceObjEvents */
/* [helpstring][uuid] */ 


EXTERN_C const IID DIID__IAtlDiceObjEvents;

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

    MIDL_INTERFACE("B7598D2B-830C-41BE-AB27-9765EE3410F2")
    _IAtlDiceObjEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */

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

    interface _IAtlDiceObjEvents
    {
        CONST_VTBL struct _IAtlDiceObjEventsVtbl __RPC_FAR *lpVtbl;
    };

    

#ifdef COBJMACROS


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

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

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


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

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

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

#define _IAtlDiceObjEvents_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 	/* ___IAtlDiceObjEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_AtlDiceObj;

#ifdef __cplusplus

class DECLSPEC_UUID("6E53417D-6193-436F-8DD1-29D239643CEA")
AtlDiceObj;
#endif

EXTERN_C const CLSID CLSID_Atldiceprop;

#ifdef __cplusplus

class DECLSPEC_UUID("772C9482-7C08-4BED-ACC8-46D65805A5FD")
Atldiceprop;
#endif
#endif /* __ATLDICELib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -