when I run my app, I get a Panic WSERV 9 from the emulator. I debugged this to find out that as the documentation for this panic says, I had not activated the graphics context before usage.
In my code, I use
CWndowGc& gc = SystemGc();
to create a graphics context.
Now, to activate this context, I have defined an RDrawableWindow object reference:
RDrawableWindow& W = RWindow();
Now I need to set the size of the RWindow using W.SetSize(), but before doing so, I need to construct the window object using the Construct() method and this is where I have my doubt.
I need to pass a const reference to a RWindowTreeNode object as the parent object of this window. Conceptually, as per my understanding, the window should be owned and parented by the view. But I am not able to draw an association between the view object derived from CCoeControl and the RWindow object, as they belong to two non-related bases.
How can I resolve this issue?
TiA for your suggestions