Copyright © 2005-2018 MultiMedia Soft

MIDI.KeyboardMove method

Previous pageReturn to chapter overviewNext page

Remarks

 

Moves or resizes an existing virtual piano keyboard.

 

For further details about the use of MIDI protocol see the MIDIMan class section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function KeyboardMove (

hWndKeyboard as IntPtr,

nLeft as Int32,

nTop as Int32,

nWidth as Int32,

nHeight as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes KeyboardMove (

IntPtr hWndKeyboard,

Int32 nLeft,

Int32 nTop,

Int32 nWidth,

Int32 nHeight

);


 

[C++]

public: enumErrorCodes KeyboardMove (

IntPtr hWndKeyboard,

Int32 nLeft,

Int32 nTop,

Int32 nWidth,

Int32 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 (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.