Init method |
|
Remarks
Initializes the control: the call to this method is mandatory and must be performed before calling any other method of the control, possibly in the container form initialization function: calling this method inside the constructor function of the container form will not work and could cause unpredictable results.
Syntax
[Visual Basic] control.Init ( hWndParent as OLE_HANDLE ) as enumDjcErrorCodes |
[C++] short control.Init ( OLE_HANDLE hWndParent ); |
Parameter |
Description |
|
|
hWndParent |
Handle of the container (parent) window: for Visual Basic is represented by the hWnd property of the container form, while for Visual C++ is represented by the call to the container dialog box GetSafeHwnd member function: the return value of this call represents a HWND so it must be cast to OLE_HANDLE to avoid compiler errors |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to see the error code meaning |
enumDjcErrorCodes.ERR_DJC_NOERROR (0) |
The method call was successful. |