Re: How to get standard toolbar button to do more than load COM object
From: Jan (biteme_at_nospam.com)
Date: 09/27/04
- Next message: Igor Tandetnik: "Re: radio buttons in the iwebbrowser control"
- Previous message: Igor Tandetnik: "Re: How to host WebBrowser control in MTA application?"
- In reply to: Igor Tandetnik: "Re: How to get standard toolbar button to do more than load COM object"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 17:58:13 +0100
Very many thanks. It works now.
Jan
"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:OAdeQHLpEHA.648@tk2msftngp13.phx.gbl...
> "Jan" <biteme@nospam.com> wrote in message
> news:%230mkGBLpEHA.3860@TK2MSFTNGP10.phx.gbl
> > class ATL_NO_VTABLE CMvCbutton :
> > public CComObjectRootEx<CComSingleThreadModel>,
> > public CComCoClass<CMvCbutton, &CLSID_MvCbutton>,
> > public IObjectWithSiteImpl<CMvCbutton>,
> > public IDispatchImpl<IMvCbutton, &IID_IMvCbutton,
> > &LIBID_MICROVENDCBLib> {
>
> To implement an interface, you need to derive your class from it. Derive
> from IOleCommandTarget
>
> > BEGIN_COM_MAP(CMvCbutton)
> > COM_INTERFACE_ENTRY(IMvCbutton)
> > COM_INTERFACE_ENTRY(IDispatch)
> > COM_INTERFACE_ENTRY(IObjectWithSite)
> > END_COM_MAP()
>
> To implement an interface, you need to list it in your interface map.
> Add
>
> COM_INTERFACE_ENTRY(IOleCommandTarget)
>
> --
> With best wishes,
> Igor Tandetnik
- Next message: Igor Tandetnik: "Re: radio buttons in the iwebbrowser control"
- Previous message: Igor Tandetnik: "Re: How to host WebBrowser control in MTA application?"
- In reply to: Igor Tandetnik: "Re: How to get standard toolbar button to do more than load COM object"
- Messages sorted by: [ date ] [ thread ]