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.

60 lines
2.4 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. virtual HRESULT TxEBookLoadImage( LPWSTR lpszName, // name of image
  41. LPARAM * pID, // E-Book supplied image ID
  42. SIZE * psize, // returned size of image (pixels)
  43. DWORD *pdwFlags)=0;// returned flags for Float
  44. virtual HRESULT TxEBookImageDraw(LPARAM ID, // id of image to draw
  45. HDC hdc, // drawing HDC
  46. POINT *topLeft, // top left corner of where to draw
  47. RECT *prcRenderint, // parm pointer to render rectangle
  48. BOOL fSelected)=0; // TRUE if image is in selected state
  49. virtual HRESULT TxGetHorzExtent(LONG *plHorzExtent)=0;//@cmember Get Horizontal scroll extent
  50. };
  51. // Various flags for TxGetEditStyle data
  52. #define TXES_ISDIALOG 1
  53. #endif // _TEXTSRV2_H