Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Useful Control Environment Functions

From Wiki
Jump to: navigation, search
Article Metadata
Created: vvsnaresh (15 Apr 2007)
Last edited: hamishwillee (31 Jul 2012)

CCoeCOntrol usage for drawing provides some very useful functions for free that enable you to perform a wide variety of tasks-ranging from querying screen devices to employing resource files for handling localized descriptor strings. The control environment member variable of CCoeControl,iCoeEnv is particularly valuable.Some of those functions functions this provides are as follows:

  • AppUi()
    • Obtains a handle to the application AppUi, as type CCoeAppUiBase
  • FsSession()
    • Obtains a handle to a File Server Session
  • WsSession()
    • Obtains a handle to the application's Windows Server session.
  • Normal Font()
    • Obtains a handle to the Normal Font of the system
  • ScreenDevice()
    • Obtains a handle to the screen device
  • ReadResource()
    • Reads a descriptor resource into a descriptor variable
  • AllocReadResourceL()
    • Reads general resource into a descriptor for later conversion into true class type--for example, a User Interface Component declared in a resource file
  • SimulateKeyEventL()
    • Simulates key presses and can aid debugging.


This page was last modified on 31 July 2012, at 09:12.
22 page views in the last 30 days.