ホーム › Web.MsHtml › IElementBehaviorLayout
IElementBehaviorLayout
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetSize(INT dwFlags, SIZE sizeContent, POINT* pptTranslateBy, POINT* pptTopLeft, SIZE* psizeProposed)
| dwFlags | INT | in | サイズ計算の動作を制御するフラグを指定する。 |
| sizeContent | SIZE | in | コンテンツのサイズを示す SIZE である。 |
| pptTranslateBy | POINT* | inout | 適用する平行移動量を受け取る POINT へのポインタである。 |
| pptTopLeft | POINT* | inout | 要素の左上位置を受け取る POINT へのポインタである。 |
| psizeProposed | SIZE* | inout | 提案されるサイズを受け取る SIZE へのポインタである。 |
| plLayoutInfo | INT* | out | レイアウト情報を示すフラグを受け取る INT へのポインタである。 |
| lFlags | INT | in | 位置取得の動作を制御するフラグを指定する。 |
| pptTopLeft | POINT* | inout | 要素の左上位置を受け取る POINT へのポインタである。 |
| psizeIn | SIZE* | in | 変換元のサイズを示す SIZE へのポインタである。 |
| prcOut | RECT* | out | 変換後の矩形を受け取る RECT へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IElementBehaviorLayout "{3050F6BA-98B5-11CF-BB82-00AA00BDCE0B}" #usecom global IElementBehaviorLayout IID_IElementBehaviorLayout "{}" #comfunc global IElementBehaviorLayout_GetSize 3 int,int,var,var,var #comfunc global IElementBehaviorLayout_GetLayoutInfo 4 var #comfunc global IElementBehaviorLayout_GetPosition 5 int,var #comfunc global IElementBehaviorLayout_MapSize 6 var,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IElementBehaviorLayout "{3050F6BA-98B5-11CF-BB82-00AA00BDCE0B}" #usecom global IElementBehaviorLayout IID_IElementBehaviorLayout "{}" #comfunc global IElementBehaviorLayout_GetSize 3 int,int,sptr,sptr,sptr #comfunc global IElementBehaviorLayout_GetLayoutInfo 4 sptr #comfunc global IElementBehaviorLayout_GetPosition 5 int,sptr #comfunc global IElementBehaviorLayout_MapSize 6 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。