Source code of Windows XP (NT5)
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.

47 lines
1.6 KiB

  1. /* @doc EXTERNAL
  2. *
  3. * @module TEXTSRV2.H Text Service Interface |
  4. *
  5. * Define new private interface between the Text Services component and the host
  6. *
  7. * History: <nl>
  8. * 8/1/95 ricksa Revised interface definition
  9. * 7/9/99 joseogl Split off from textserv,h because ITextHost2 is undocumented
  10. */
  11. #ifndef _TEXTSRV2_H
  12. #define _TEXTSRV2_H
  13. EXTERN_C const IID IID_ITextHost2;
  14. /*
  15. * class ITextHost2
  16. *
  17. * @class An optional extension to ITextHost which provides functionality
  18. * necessary to allow TextServices to embed OLE objects
  19. */
  20. class ITextHost2 : public ITextHost
  21. {
  22. public: //@cmember Is a double click in the message queue?
  23. virtual BOOL TxIsDoubleClickPending() = 0;
  24. //@cmember Get the overall window for this control
  25. virtual HRESULT TxGetWindow(HWND *phwnd) = 0;
  26. //@cmember Set control window to foreground
  27. virtual HRESULT TxSetForegroundWindow() = 0;
  28. //@cmember Set control window to foreground
  29. virtual HPALETTE TxGetPalette() = 0;
  30. //@cmember Get FE flags
  31. virtual HRESULT TxGetFEFlags(LONG *pFlags) = 0;
  32. //@cmember Routes the cursor change to the winhost
  33. virtual HCURSOR TxSetCursor2(HCURSOR hcur, BOOL bText) = 0;
  34. //@cmember Notification that text services is freed
  35. virtual void TxFreeTextServicesNotification() = 0;
  36. //@cmember Get Edit Style flags
  37. virtual HRESULT TxGetEditStyle(DWORD dwItem, DWORD *pdwData) = 0;
  38. //@cmember Get Window Style bits
  39. virtual HRESULT TxGetWindowStyles(DWORD *pdwStyle, DWORD *pdwExStyle) = 0;
  40. };
  41. // Various flags for TxGetEditStyle data
  42. #define TXES_ISDIALOG 1
  43. #endif // _TEXTSRV2_H