IfmManage::LoadFormResource

This method loads a form from a resource file.

Syntax

HRESULT LoadFormResource( OLE_HANDLE hFC, long wRsrcID, IDispatch **ppForm, IDispatch *pDispSink );

Parameters

hFC
OLE_HANDLE to the Forms Manager context.
wRsrcID
Long integer that contains the identifier of the resource file.
ppForm
Pointer to the pointer to a form.
pDispSink
Pointer to an event sink.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that an invalid argument was entered. E_ACCESSDENIED indicates that access to the resource file was denied. If an error occurs, the appropriate HRESULT value is returned.

Remarks

For information about how to layout a resource, see Constraint-Based Layout and FA_* Values.‹For information about how to layout a resource, see Appendix F, "Constraint-Based Layout and FA_* Values."›