I'm not able to call DrawNow() its throwing WSERV 12. Tried it with DrawDeferred() and its calling the parent.Draw().
A* A::NewL(RWindow* parent) {
A* self = new(ELeave) A();
CleanupStack::PushL(self);
self->ConstructL(parent);
CleanupStack::Pop(self);
return self;
}
A::A() {}
void A::ConstructL(RWindow* parent) {
if (parent != NULL) {
SetContainerWindowL(*parent);
} else {
CreateWindowL();
}
CEikAppUi* app_ui = static_cast<CEikAppUi*>(CCoeEnv::Static()->AppUi());
const TRect kRect(app_ui->ClientRect());
SetRect(kRect);
}
void A::ShowTip(TBool show_tip) {
tip_visible_ = show_tip;
if (tip_visible_) {
DrawNow(); // Throwing WSERV 12
DrawDeferred(); // Calling parent.Draw()
}
}



