// IconColumn.h : Declaration of the cIconColumn #ifndef __ICONCOLUMN_H_ #define __ICONCOLUMN_H_ #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // cIconColumn class ATL_NO_VTABLE cIconColumn : public CComObjectRootEx, public CComCoClass, public IListColumn { public: cIconColumn() { } CComPtr< IList > m_pList; CComPtr< IPluginSite > m_pSite; DECLARE_REGISTRY_RESOURCEID(IDR_ICONCOLUMN) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(cIconColumn) COM_INTERFACE_ENTRY(IListColumn) END_COM_MAP() // IListColumn public: STDMETHOD(get_Color)(long nRow, /*[out, retval]*/ long *pVal); STDMETHOD(put_Color)(long nRow, /*[in]*/ long newVal); STDMETHOD(Activate)(LPPOINT ptCell); STDMETHOD(get_Height)(/*[out, retval]*/ long *pVal); STDMETHOD(SchemaLoad)(IUnknown *pSchema); STDMETHOD(Initialize)(/*[in]*/ IList * newVal, IPluginSite *pSite); STDMETHOD(get_DataColumns)(/*[out, retval]*/ long *pVal); STDMETHOD(Render)(ICanvas *, LPPOINT ptCell, long nColor); STDMETHOD(get_Width)(/*[out, retval]*/ long *pVal); STDMETHOD(get_FixedWidth)(/*[out, retval]*/ VARIANT_BOOL *pVal); STDMETHOD(put_Width)(/*[in]*/ long newVal); }; #endif //__ICONCOLUMN_H_