I have two apps - one main app and one viewer app which is launched embedded in the main one. The viewer app behaves correctly as an embedded application. When launched from the built-in messaging application (I got all the MIME association and recognizer stuffer working perfectly) it correctly displays itself as well as its CBA (Options + Back). The problem is, when it's launched from my own caller app, I cannot get its CBA to display. What's shown is always the caller application's CBA. Any ideas?

BTW, the viewer app is launched via the Document Handler class like this:

CDocumentHandler* iDocHandler;


iDocHandler = CDocumentHandler::NewL((CEikProcess*)iEikonEnv->Process());
iDocHandler->OpenFileEmbeddedL(_L("c:\\test.abc"), TDataType(KMime));