MIDI.KeyboardMove method |
|
Remarks
Moves or resizes an existing virtual piano keyboard.
For further details about the use of MIDI protocol see the MIDI object section and the How to deal with MIDI protocol tutorial.
Syntax
[Visual Basic] control.MIDI.KeyboardMove ( hWndKeyboard as OLE_HANDLE, nLeft as Long, nTop as Long, nWidth as Long, nHeight as Long ) as enumErrorCodes |
[C++] short control.MIDI.KeyboardMove ( OLE_HANDLE hWndKeyboard, long nLeft, long nTop, long nWidth, long nHeight ); |
Parameter |
Description |
|
|
hWndKeyboard |
Handle of the virtual keyboard as returned by the call to the MIDI.KeyboardCreate method |
nLeft |
Left position of the keyboard window, expressed in parent's client coordinates (pixels) |
nTop |
Top position of the keyboard window, expressed in parent's client coordinates (pixels) |
nWidth |
Width of the keyboard window, expressed in pixels |
nHeight |
Height of the keyboard window, expressed in pixels |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |