I have called ActivateL() in Constructor of the container. Then after ActivateL() the next line i have written is subDraw();
subDraw() definition is as follows:
void MyContainer::subDraw() const
CWindowGc &gc = SystemGc();
Then the application crashes...
But if in the constructor at the same line I write DrawNow() after ActivateL()... then the code works. Draw also does the same functionality as subDraw(). Why does it behave this way ? Can we draw from other functions only if once Draw() function is called ? Any help on allowed "drawing heirarchy" is appreciated!