PROBLEM : In 3rd edition I can draw whole background but not partial.
-----------------
for IInd edition I can define
a] which area of bmp/skin I ant draw
b] where I want to draw
CFbsBitmap* bmp = AknsUtils::GetCachedBitmap(skin, KAknsIIDQsnBgAreaStatus);
gc.DrawBitmap(Rect(), bmp, TRect(Position(), Size()));
----------
I tried to achieve same in 3rd edition but failed. In 3rd edition I can draw whole background but not partial. say I want to draw [100,100 to 120,120] of skin, at position [100, 100]
TRect rect(Rect());
MAknsSkinInstance* skin = AknsUtils::SkinInstance();
CAknsBasicBackgroundControlContext* cc = CAknsBasicBackgroundControlContext::NewL(KAknsIIDQsnBgAreaMain, rect,EFalse);
AknsDrawUtils::Background(skin, cc, this, gc, rect);
----
After drawing .....
Destination pos is right.
But source rect[skin] is always [0, 0] (should be 100, 100)
No matter what combination of 'rect' I use.
either bcakground is not get drawn at all or
it taks source(skin) rect from [0, 0]
Any idea ...!
saur




