Useful Control Environment Functions
Article Metadata
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.
--


(no comments yet)