1)Earlier we are using- a CMIDI Class with an object,
CMidiKeyboard m_Keys;
that object is passed as control to the DDX ,linking with IDC_EDIT1,
DDX_Control(pDX, IDC_EDIT1, m_Keys);
the object is used to initialize the CMIDIKeyboard ,
m_Keys.Initialize(CMIDIKeyboard::LOW_NOTE, CMIDIKeyboard::HIGH_NOTE);
which is used to draw Keyboard on edit box .
2)For Multitouch- we created CEditPiano which has an object,
CEDitPiano m_Keys1;
which is also linked with another sample edit box through DDX control,
DDX_Control(pDX, IDC_EDIT4, m_Keys1);
which is used to register touch window,
M_Keys1.RegisterTouchWindow();
after detecting WM_TOUCH message, Multitouch is detected on touch, in CEditPaino.cpp Class and Multitouch is printed.
ISSUE-the Object used for Multitouch is initiased Like
CEDitPiano m_Keys1;
and Object for drawing piano is initiased like
CMidiKeyboard m_Keys;
so,to include PianoKeys inside a multitouch EditBox we need to Initialse
m_Keys1.Initialize(CMIDIKeyboard::LOW_NOTE, CMIDIKeyboard::HIGH_NOTE);
But
m_Keys1 is not object for CMIDIKeyboard so due to incompatibility we are
not able to initialise Keyboard.
How to achive Piano Initialization in Multitouch editbox.