Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to override CBindStatusCallback::OnDataAvailable in ATL-based control

9 views
Skip to first unread message

by

unread,
Jun 22, 2000, 3:00:00 AM6/22/00
to
Hi,

I've an ATL-based COM control, and I'd like to derive it from
CBindStatusCallback and override the OnDataAvailable() method. How do I do
this ? How is this sort of thing done under ATL ?

I tried:

class ATL_NO_VTABLE CMyCtl :
public CComObjectRootEx<CComSingleThreadModel>,
public CComControl<CMyCtl>,
public IPersistStreamInitImpl<CMyCtl>,
public IOleControlImpl<CMyCtl>,
...
public CBindStatusCallback<CMyCtl>

but I got compile error C2027: use of undefined type 'CMyCtl'.

Or more generally, how do I override a method of any interface in my control
?


Girish Bharadwaj

unread,
Jun 23, 2000, 3:00:00 AM6/23/00
to
Why dont you just reimplement IBindStatusCallback interface itself.. I
think etcprotocol sample does it. You might have to change it a little
to get it to work on VC 6.0. Also, it might not be available in the
recent MSDN (Apr 2000). You might have to search for it in the earlier
versions..

--
Girish Bharadwaj

0 new messages