I'm using a CArrayPtrFlat array for storing different type of controls within my view through CArrayPtrFlat<CCoeControl>* iControls = new CArrayPtrFlat<CCoeControl>(1); For the different controls within my view I create and append it to the array.
Now I want to iterate through the entire array and display a message as to what kind of control has been stored in the array. Though I have the index available but I don't know how to display which type of control has been stored in the CArrayPtrFLat array. It'd be of great help if someone could provide a code snippet or a pointer as to how can I while iterating through the controls array, display messages as to what kind of control is stored in the particular index?
I'd need to perform certain casts, but I'm not sure how?