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.

35 lines
830 B

  1. //
  2. // view.h
  3. //
  4. #ifndef VIEW_H
  5. #define VIEW_H
  6. class CInputContext;
  7. class CContextView : public ITfContextView,
  8. public CComObjectRootImmx
  9. {
  10. public:
  11. CContextView(CInputContext *pic, TsViewCookie vcView);
  12. ~CContextView();
  13. BEGIN_COM_MAP_IMMX(CContextView)
  14. COM_INTERFACE_ENTRY(ITfContextView)
  15. END_COM_MAP_IMMX()
  16. IMMX_OBJECT_IUNKNOWN_FOR_ATL()
  17. // ITfContextView
  18. STDMETHODIMP GetRangeFromPoint(TfEditCookie ec, const POINT *ppt, DWORD dwFlags, ITfRange **ppRange);
  19. STDMETHODIMP GetTextExt(TfEditCookie ec, ITfRange *pRange, RECT *prc, BOOL *pfClipped);
  20. STDMETHODIMP GetScreenExt(RECT *prc);
  21. STDMETHODIMP GetWnd(HWND *phwnd);
  22. private:
  23. CInputContext *_pic;
  24. TsViewCookie _vcView;
  25. DBG_ID_DECLARE;
  26. };
  27. #endif // VIEW_H