Copyright © 2008-2018 MultiMedia Soft

ResetControl method

Previous pageReturn to chapter overviewNext page

Remarks

 

Re-initialises the control after a reset of the multimedia engine: the call to this method is mandatory after a call to the ResetEngine method performed through Active DJ Studio or through Active Sound Recorder controls. The purpose of this method is mostly identical to the InitEditor method and shares the same parameters.

 

 

Syntax

 

[Visual Basic]

control.ResetControl (

hWndParent as OLE_HANDLE

) as enumErrorCodes


 

[C++]

short control.ResetControl (

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.