background for Different screen sizes
| Fri, 2007-06-22 23:50 | |
|
I want fit the app view's background bmp to the different screen sizes. I would appreciate any help regarding this issue because I'm a bit confused after checking the relevant docs and examples. As I understand (but not sure), Till now I used this code:
void CMyAppViewContainer::Draw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
gc.Clear(Rect());
_LIT(KMBMFileName, "c:\\resource\\apps\\backround.mbm");
TBuf<50> mbmFileName;
mbmFileName.Append(KMBMFileName);
CFbsBitmap* bitmap = new (ELeave) CFbsBitmap();
bitmap->Load(mbmFileName);
gc.BitBlt(TPoint(0,0),bitmap,aRect);
delete bitmap;
}
Thanks & Enjoy your weekend |
|





