Start to use CppEvents in class Window
Remove unused CallbackObject