Hi
I would like to implement a custom control that shows the currently selected skin's wallpaper in the background.
In my AppUi class, I am calling BaseConstructL(EAknEnableSkin); to make the app skin aware and in other views, this seems to work.
And in my Draw() method I have tried this (copied from elsewhere on the forum), but it simply draws a nice white block for the background - nice ;-)
void CBackVisibleControl::Draw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
MAknsSkinInstance* skin = AknsUtils::SkinInstance();
MAknsControlContext* cc = AknsDrawUtils::ControlContext(this);
AknsDrawUtils::Background(skin, cc, this, gc, Rect(), KAknsDrawParamDefault);
// some more drawing here
}
Does anyone have a simple example of a working custom control with the skin's background visible?
Any help welcome...
Thanks



