I have a simple AppUi derived from CAknAppUi. I create a container in it derived from CCoeControl. I want to add controls to this container at runtime.
Is it possible to add controls to a compound control dynamically? If so,
how? I am not talking about dialogs which you simply do dlg->ExecuteLD(). I am talking about non-window owning controls.
I tried creating my new control and modifying ComponentControl(), SizeChanged() and
CountComponentControls() of the container to reflect the change.
It kinda works, but the new control doesn't get drawn until I touch the arrow keys are cause some kind of update process. When I create the control, I call DrawNow() but that doesn't seem to help either (even though I am doing MakeVisible(ETrue)).
So far I was unable to do that and I am not sure what I missing..
I searched up and down on every forum, but can't find the answer to this. The examples that come with the SDK don't show this either. The SDK examples use CAknView architecture. I don't want to do that because of its complexity and inflexibility..
Anyone have any ideas? Please let me know.