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 over the next few weeks. Thanks for all your past and future contributions.
Drawing a standard border around a CEikEdwin
Nokia E90 Communicator
Nokia N95 8GB
Nokia 6220 Classic
S60 3rd Edition, FP1
S60 3rd Edition, FP2 Beta
S60 5th Edition
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
In this code snippet a standard border is drawn around a CEikEdwin. The same technique applies to all controls inherited from CEikBorderedControl.
The following libraries are required:
void CAppView::ConstructL(const TRect& aRect)
// Set border type
void CAppView::Draw(const TRect& aRect) const
// Get the standard graphics context
CWindowGc& gc = SystemGc();
// Clear the screen
// Get the border
TGulBorder border = iEditor->Border();
// Draw the border so that it surrounds iEditor
TRect editorRect = iEditor->Rect();
A standard border is drawn around a CEikEdwin.