Disable task swapper in menu
S60 5th Edition
Under some rare use cases it is suitable to disable the task list that appears on the Option menus of applications in FP2 and later.
This snippet can be self-signed and requires no capabilities.
The effect is localized to the application.
This is part of a GUI application that supports views and has a menu bar.
At the top of the file remember to add the CEikMenuBar header file
Now grab the menu bar from the view and set it so that it does not display the task switcher option at the top.
Typically this will be done in the DoActivateL
CEikMenuBar* menuBar = MenuBar();
The task switcher menu item on the menu bar will not be shown.
This is covered in more detail in this link