ホーム › Web.MsHtml › IDisplayServices
IDisplayServices
COMメソッド 7
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT CreateDisplayPointer(IDisplayPointer** ppDispPointer)
| ppDispPointer | IDisplayPointer** | out | 新しく作成した表示ポインタを受け取る IDisplayPointer へのポインタである。不要になったら Release する。 |
vtbl 4 HRESULT TransformRect(RECT* pRect, COORD_SYSTEM eSource, COORD_SYSTEM eDestination, IHTMLElement* pIElement)
| pRect | RECT* | inout | 変換対象の矩形を指定し、変換後の矩形を受け取る RECT へのポインタである。 |
| eSource | COORD_SYSTEM | in | 変換元の座標系を指定する COORD_SYSTEM である。 |
| eDestination | COORD_SYSTEM | in | 変換先の座標系を指定する COORD_SYSTEM である。 |
| pIElement | IHTMLElement* | in | 座標変換の基準とする要素を指定する IHTMLElement へのポインタである。NULL を指定できる。 |
vtbl 5 HRESULT TransformPoint(POINT* pPoint, COORD_SYSTEM eSource, COORD_SYSTEM eDestination, IHTMLElement* pIElement)
| pPoint | POINT* | inout | 変換対象の点を指定し、変換後の点を受け取る POINT へのポインタである。 |
| eSource | COORD_SYSTEM | in | 変換元の座標系を指定する COORD_SYSTEM である。 |
| eDestination | COORD_SYSTEM | in | 変換先の座標系を指定する COORD_SYSTEM である。 |
| pIElement | IHTMLElement* | in | 座標変換の基準とする要素を指定する IHTMLElement へのポインタである。NULL を指定できる。 |
vtbl 6 HRESULT GetCaret(IHTMLCaret** ppCaret)
| ppCaret | IHTMLCaret** | out | ドキュメントのキャレットを操作するための IHTMLCaret を受け取るポインタである。不要になったら Release する。 |
vtbl 7 HRESULT GetComputedStyle(IMarkupPointer* pPointer, IHTMLComputedStyle** ppComputedStyle)
| pPointer | IMarkupPointer* | in | 計算済みスタイルを取得する位置を示すマークアップポインタを指定する IMarkupPointer へのポインタである。 |
| ppComputedStyle | IHTMLComputedStyle** | out | 指定位置の計算済みスタイルを受け取る IHTMLComputedStyle へのポインタである。不要になったら Release する。 |
vtbl 8 HRESULT ScrollRectIntoView(IHTMLElement* pIElement, RECT rect)
| pIElement | IHTMLElement* | in | スクロールの基準とする要素を指定する IHTMLElement へのポインタである。 |
| rect | RECT | in | 表示領域内にスクロールして収める矩形を指定する RECT である。 |
vtbl 9 HRESULT HasFlowLayout(IHTMLElement* pIElement, BOOL* pfHasFlowLayout)
| pIElement | IHTMLElement* | in | 判定対象の要素を指定する IHTMLElement へのポインタである。 |
| pfHasFlowLayout | BOOL* | out | 指定要素がフローレイアウトを持つかどうかを受け取る BOOL へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDisplayServices "{3050F69D-98B5-11CF-BB82-00AA00BDCE0B}" #usecom global IDisplayServices IID_IDisplayServices "{}" #comfunc global IDisplayServices_CreateDisplayPointer 3 sptr #comfunc global IDisplayServices_TransformRect 4 var,int,int,sptr #comfunc global IDisplayServices_TransformPoint 5 var,int,int,sptr #comfunc global IDisplayServices_GetCaret 6 sptr #comfunc global IDisplayServices_GetComputedStyle 7 sptr,sptr #comfunc global IDisplayServices_ScrollRectIntoView 8 sptr,int #comfunc global IDisplayServices_HasFlowLayout 9 sptr,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDisplayServices "{3050F69D-98B5-11CF-BB82-00AA00BDCE0B}" #usecom global IDisplayServices IID_IDisplayServices "{}" #comfunc global IDisplayServices_CreateDisplayPointer 3 sptr #comfunc global IDisplayServices_TransformRect 4 sptr,int,int,sptr #comfunc global IDisplayServices_TransformPoint 5 sptr,int,int,sptr #comfunc global IDisplayServices_GetCaret 6 sptr #comfunc global IDisplayServices_GetComputedStyle 7 sptr,sptr #comfunc global IDisplayServices_ScrollRectIntoView 8 sptr,int #comfunc global IDisplayServices_HasFlowLayout 9 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。