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