What version of S60 are you building this application for?
And from your code it seems that you expect SkinEnabled to turn ON the skinning on the edwin.But the documentation says:
Code:
TBool CEikEdwin::SkinEnabled ( ) const
Access to disposition of the editor to perform Skinning.
This does not take into account whether the application is skin enabled or whether the environment is providing a background control context. It is only a function of whether editor's (default) disposition to skin has been countered by calls on the editor API.
Returns:
EFalse iff SetSkinBackgroundControlContextL has been called with NULL in its most recent call
Hope this helps.
--Mayur.