GetPosition method

Gets the position of the element.

Syntax


HRESULT retVal = object.GetPosition(lFlags, pptTopLeft);

Parameters

lFlags [in]

Type: LONG

Specifies the type of layout control that is a value from the BEHAVIOR_LAYOUT_MODE enumeration.

pptTopLeft [in, out]

Type: POINT

A pointer to a POINT structure that specifies the upper-left corner of the layout rectangle.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

 

 

Show: