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.

72 lines
2.0 KiB

  1. /****************************************************************************
  2. IPOINT.H
  3. Owner: cslim
  4. Copyright (c) 1997-1999 Microsoft Corporation
  5. IImeIPoint1 interface
  6. History:
  7. 20-JUL-1999 cslim Created
  8. *****************************************************************************/
  9. #if !defined(_IPOINT_H__INCLUDED_)
  10. #define _IPOINT_H__INCLUDED_
  11. class CKorIMX;
  12. class CIPointCic : public IImeIPoint1
  13. {
  14. // Ctor and Dtor
  15. public:
  16. CIPointCic(CKorIMX *pImx);
  17. ~CIPointCic();
  18. // IImePoint1 Methods
  19. public:
  20. STDMETHODIMP QueryInterface(THIS_ REFIID riid, LPVOID * ppvObj);
  21. STDMETHODIMP_(ULONG) AddRef(VOID);
  22. STDMETHODIMP_(ULONG) Release(VOID);
  23. STDMETHODIMP InsertImeItem (IPCANDIDATE* pImeItem, INT iPos, DWORD *lpdwCharId);
  24. STDMETHODIMP ReplaceImeItem (INT iPos, INT iTargetLen, IPCANDIDATE* pImeItem, DWORD *lpdwCharId);
  25. STDMETHODIMP InsertStringEx (WCHAR* pwSzInsert, INT cchSzInsert, DWORD *lpdwCharId);
  26. STDMETHODIMP DeleteCompString (INT iPos, INT cchSzDel);
  27. STDMETHODIMP ReplaceCompString (INT iPos,
  28. INT iTargetLen,
  29. WCHAR *pwSzInsert,
  30. INT cchSzInsert,
  31. DWORD *lpdwCharId);
  32. STDMETHODIMP ControlIME (DWORD dwIMEFuncID, LPARAM lpara);
  33. STDMETHODIMP GetAllCompositionInfo(WCHAR **ppwSzCompStr,
  34. DWORD **ppdwCharID,
  35. INT *pcchCompStr,
  36. INT *piIPPos,
  37. INT *piStartUndetStrPos,
  38. INT *pcchUndetStr,
  39. INT *piEditStart,
  40. INT *piEditLen);
  41. STDMETHODIMP GetIpCandidate (DWORD dwCharId,
  42. IPCANDIDATE **ppImeItem,
  43. INT *piColumn,
  44. INT *piCount);
  45. STDMETHODIMP SelectIpCandidate (DWORD dwCharId, INT iselno);
  46. STDMETHODIMP UpdateContext (BOOL fGenerateMessage);
  47. // Helper functions
  48. public:
  49. HRESULT Initialize(ITfContext *pic);
  50. // Internal data
  51. protected:
  52. CKorIMX *m_pImx;
  53. ITfContext *m_pic;
  54. ULONG m_cRef; // Ref count
  55. // char serial number
  56. DWORD m_dwCharNo;
  57. };
  58. typedef CIPointCic* LPCIPointCic;
  59. #endif // _IPOINT_H__INCLUDED_