IASForm::GetIFMDraw

This method retrieves a pointer to the IFMDraw interface associated with a control.

Syntax

HRESULT GetIFMDraw( IDispatch **ppdispFMDraw, long lxLeft, long lyTop, long lxWidth, long lyHeight );

Parameters

ppdispFMDraw
Pointer to the pointer to an IFMDraw interface.
lxLeft
Long integer that contains the coordinate of the left edge of the drawing rectangle.
lyTop
Long integer that contains the coordinate of the upper edge of the drawing rectangle.
lxWidth
Long integer that contains the width of the drawing rectangle.
lyHeight
Long integer that contains the height of the drawing rectangle.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that an invalid argument was used. E_ACCESSDENIED indicates that no IFMDraw interface identifier (IID) is available. If an error occurs, the appropriate HRESULT value is returned.

Remarks

You should not use this method in most applications. Use this method only when designing custom controls.

See Also

IFMDraw