You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
833 B
43 lines
833 B
//
|
|
// enumic.h
|
|
//
|
|
|
|
#ifndef ENUMIC_H
|
|
#define ENUMIC_H
|
|
|
|
|
|
class CDocumentInputManager;
|
|
|
|
class CEnumInputContexts : public IEnumTfContexts,
|
|
public CComObjectRootImmx
|
|
{
|
|
public:
|
|
CEnumInputContexts();
|
|
~CEnumInputContexts();
|
|
|
|
BOOL _Init(CDocumentInputManager *pdim);
|
|
|
|
BEGIN_COM_MAP_IMMX(CEnumInputContexts)
|
|
COM_INTERFACE_ENTRY(IEnumTfContexts)
|
|
END_COM_MAP_IMMX()
|
|
|
|
IMMX_OBJECT_IUNKNOWN_FOR_ATL()
|
|
|
|
//
|
|
// IEnumTfContexts
|
|
//
|
|
STDMETHODIMP Clone(IEnumTfContexts **ppEnum);
|
|
STDMETHODIMP Next(ULONG ulCount, ITfContext **ppic, ULONG *pcFetch);
|
|
STDMETHODIMP Reset();
|
|
STDMETHODIMP Skip(ULONG ulCount);
|
|
|
|
private:
|
|
ITfContext *_rgContexts[2];
|
|
int _iCur;
|
|
int _iCount;
|
|
|
|
DBG_ID_DECLARE;
|
|
};
|
|
|
|
|
|
#endif // ENUMIC_H
|