|
// FormViewerItemDetails.h : Declaration of the CFormViewerItemDetails
//
// Author : David Shepherd
// Copyright (c) 2002, DaeDoe-Software
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "resource.h" // main symbols
#include "DDForms.h"
/////////////////////////////////////////////////////////////////////////////
// CFormViewerItemDetails
class ATL_NO_VTABLE CFormViewerItemDetails :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CFormViewerItemDetails, &CLSID_FormViewerItemDetails>,
public IDispatchImpl<IFormViewerItemDetails, &IID_IFormViewerItemDetails, &LIBID_DDFORMSLib, TlbVerMaj, TlbVerMin>
{
public:
// the item
CComPtr<IDispatch> m_spItem;
// the form viewer
CComPtr<IFormViewer2> m_spFormViewer2;
CFormViewerItemDetails();
virtual ~CFormViewerItemDetails();
DECLARE_REGISTRY_RESOURCEID(IDR_FORMVIEWERITEMDETAILS)
BEGIN_COM_MAP(CFormViewerItemDetails)
COM_INTERFACE_ENTRY(IFormViewerItemDetails)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct();
void FinalRelease();
// IFormViewerItemDetails
public:
STDMETHOD(get_Item)(IDispatch **ppDispatch);
STDMETHOD(get_ClassId)(BSTR *pVal);
STDMETHOD(get_Name)(BSTR *pVal);
STDMETHOD(get_Tag)(BSTR *pVal);
STDMETHOD(get_Left)(long *pVal);
STDMETHOD(get_Top)(long *pVal);
STDMETHOD(get_Width)(long *pVal);
STDMETHOD(get_Height)(long *pVal);
STDMETHOD(get_TabNumber)(long *pVal);
};
OBJECT_ENTRY_NON_CREATEABLE_EX_AUTO(__uuidof(FormViewerItemDetails), CFormViewerItemDetails)
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.