Leaked source code of windows server 2003
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.
 
 
 
 
 
 

28 lines
646 B

//
// dictation context class implementation
//
//
#ifndef _DICTCTXT_H_
#define _DICTCTXT_H_
class CDictContext
{
public:
CDictContext(ITfContext *pic, ITfRange *pRange);
~CDictContext();
HRESULT InitializeContext(TfEditCookie ecReadOnly);
HRESULT FeedContextToGrammar(ISpRecoGrammar *pGram);
private:
CComPtr<ITfContext> m_cpic;
CComPtr<ITfRange> m_cpRange;
WCHAR *m_pszText;
ULONG m_ulStartIP;
ULONG m_ulCchToFeed;
ULONG m_ulSel;
};
#define CCH_FEED_PREIP 20
#define CCH_FEED_POSTIP 20
#endif //__DICTCTXT_H_