From 1a8397671ec276b16b915cdfa90bf309bb138b7a Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 28 Apr 2006 19:55:43 +0200 Subject: [PATCH] mshtml: Added IHTMLTextContainer declaration. --- include/mshtmdid.h | 8 ++++++++ include/mshtml.idl | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/include/mshtmdid.h b/include/mshtmdid.h index 23f2b845536..4ab48a5c9de 100644 --- a/include/mshtmdid.h +++ b/include/mshtmdid.h @@ -1817,4 +1817,12 @@ #define DISPID_IHTMLCURRENTSTYLE_OVERFLOWY DISPID_A_OVERFLOWY #define DISPID_IHTMLCURRENTSTYLE_TEXTTRANSFORM DISPID_A_TEXTTRANSFORM +/* IHTMLTextContainer */ +#define DISPID_IHTMLTEXTCONTAINER_CREATECONTROLRANGE DISPID_TEXTSITE+1 +#define DISPID_IHTMLTEXTCONTAINER_SCROLLHEIGHT DISPID_TEXTSITE+2 +#define DISPID_IHTMLTEXTCONTAINER_SCROLLWIDTH DISPID_TEXTSITE+3 +#define DISPID_IHTMLTEXTCONTAINER_SCROLLTOP DISPID_TEXTSITE+4 +#define DISPID_IHTMLTEXTCONTAINER_SCROLLLEFT DISPID_TEXTSITE+5 +#define DISPID_IHTMLTEXTCONTAINER_ONSCROLL DISPID_EVPROP_ONSCROLL + #endif /* __MSHTMDID_H__ */ diff --git a/include/mshtml.idl b/include/mshtml.idl index 6ce9772f210..2f82392ee3a 100644 --- a/include/mshtml.idl +++ b/include/mshtml.idl @@ -2681,6 +2681,45 @@ interface IHTMLFormElement : IDispatch [retval, out] IDispatch **pdisp); } +/***************************************************************************** + * IHTMLTextContainer interface + */ +[ + odl, + oleautomation, + dual, + uuid(3050f230-98b5-11cf-bb82-00aa00bdce0b) +] +interface IHTMLTextContainer : IDispatch +{ + [id(DISPID_IHTMLTEXTCONTAINER_CREATECONTROLRANGE)] + HRESULT createControlRange([retval, out] IDispatch **range); + + [propget, id(DISPID_IHTMLTEXTCONTAINER_SCROLLHEIGHT), displaybind, bindable] + HRESULT scrollHeight([retval, out] long *p); + + [propget, id(DISPID_IHTMLTEXTCONTAINER_SCROLLWIDTH), displaybind, bindable] + HRESULT scrollWidth([retval, out] long *p); + + [propput, id(DISPID_IHTMLTEXTCONTAINER_SCROLLTOP), displaybind, bindable] + HRESULT scrollTop([in] long v); + + [propget, id(DISPID_IHTMLTEXTCONTAINER_SCROLLTOP), displaybind, bindable] + HRESULT scrollTop([retval, out] long *p); + + [propput, id(DISPID_IHTMLTEXTCONTAINER_SCROLLLEFT), displaybind, bindable] + HRESULT scrollLeft([in] long v); + + [propget, id(DISPID_IHTMLTEXTCONTAINER_SCROLLLEFT), displaybind, bindable] + HRESULT scrollLeft([retval, out] long *p); + + [propput, id(DISPID_IHTMLTEXTCONTAINER_ONSCROLL), displaybind, bindable] + HRESULT onscroll([in] VARIANT v); + + [propget, id(DISPID_IHTMLTEXTCONTAINER_ONSCROLL), displaybind, bindable] + HRESULT onscroll([retval, out] VARIANT *p); +} + /***************************************************************************** * IHTMLImgElement interface */