Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Enabling touch support

To enable touch support for all Widgets, the application calls IWidget_EnableTouch(), passing the IWidget interface object for the root container, as shown in this example:

nErr = ISHELL_CreateInstance(piShell, AEECLSID_CRootContainer,
            (void**)&me->picRoot);
if (AEE_SUCCESS == nErr) {
   nErr = IRootContainer_QueryInterface(me->picRoot, AEEIID_IWidget,
            (void**)&me->piwRoot);
}
if (AEE_SUCCESS == nErr) {
   nErr = IWidget_EnableTouch(piwRoot);
}