This function is used to enable the default touch controllers on widgets. If you want to enable touch on a widget canvas, use this function on the RootContainer. Children added to the widget canvas after touch has been enabled through the root container will automatically enable touch support on themselves. It is possible to send an enable touch call to a widget besides the root container; however, the touch events may not route correctly.
int IWidget_EnableTouch(IWidget *pif);
- AEE_SUCCESS : The function was able to successfully enable touch on the provided widget and any of its children that supports touch. AEE_EFAILED : The passed in widget does not support touch.
- Default touch controllers will be added if none were previously attached to widgets. For the standard widgets, the AEECLSID_OEMxxxTC class will be checked first followed by the standard AEECLSID_xxxTC class.