How to create controls on the view which is derived from CCoeControl.
Declare controls that you would like to create as a member variables in the View class. Create these contols in, for example, View::ConstructL. Set container window and rectangle for each control and activate it.
iMyLabel = new (ELeave) CEikLabel();
Override virtual functions ComponentControl and CountComponentControls inherited from CCoeControl.
You can find sample program in Nokia 9200 SDK \NokiaCPP\Epoc32Ex\System\Graphics.