I managed to get an new panel into testcomplete by extending the CWindowImpl interface. Also I added a button to the panel making a call to CreateWindow(L"BUTTON" ..) in OnCreate method of CWindowImpl class.
Problem is how do I attach event handlers to that button. I want to grab the actions on that button and write my custom action handlers.
Am I not supposed add UI elements to panel using CreateWindow ??
Also, I am able to create UI elements with event handlers attached using IaqActionManager as well. But then I couldn't figure out how do I add such elements to UI panel created by extending CWindowImpl .