camerauis/cameraapp/generic/src/CamCaptureSetupMenu.cpp
branchRCL_3
changeset 31 8f559c47d7fd
parent 0 1ddebce53859
--- a/camerauis/cameraapp/generic/src/CamCaptureSetupMenu.cpp	Tue May 25 12:22:04 2010 +0300
+++ b/camerauis/cameraapp/generic/src/CamCaptureSetupMenu.cpp	Wed Jun 09 09:21:41 2010 +0300
@@ -173,17 +173,22 @@
 TInt CCamCaptureSetupMenu::CountComponentControls() const
     {
 	// this control contains a listbox
-    return 1; 
+    return CCamContainerBase::CountComponentControls() + 1; 
     }
 
 // ---------------------------------------------------------
 // CCamCaptureSetupMenu::ComponentControl(TInt aIndex) const
 // ---------------------------------------------------------
 //
-CCoeControl* CCamCaptureSetupMenu::ComponentControl(TInt /*aIndex*/) const
+CCoeControl* CCamCaptureSetupMenu::ComponentControl(TInt aIndex) const
     {
-	return iCaptureSetupListBox;
-    }
+    CCoeControl* control = CCamContainerBase::ComponentControl( aIndex );
+    if( control == NULL)
+        {
+        control = iCaptureSetupListBox;
+        }
+    return control;
+	}
 
 // ---------------------------------------------------------
 // CCamCaptureSetupMenu::Draw(const TRect& aRect) const