×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    16

    Unhappy Help Help, Daw with double buffer and background.

    I use double buffer to draw, but i need to show phone skin background.
    and in my functions the background is white? How about this.
    this is my code.
    ConstructL()
    {
    ...
    TDisplayMode displayMode = CEikonEnv::Static()->ScreenDevice()->DisplayMode();
    iBackBufferBitmap = new(ELeave) CFbsBitmap();

    User::LeaveIfError(iBackBufferBitmap->Create(aRect.Size(), displayMode));
    // Create bitmap device for the bitmap
    iBackBufferDevice = CFbsBitmapDevice::NewL(iBackBufferBitmap);

    // Create graphics context for the bitmap
    User::LeaveIfError(iBackBufferDevice->CreateContext(iBackBufferGc));

    iBackGround = CAknsBasicBackgroundControlContext::NewL(KAknsIIDQsnBgAreaMain, Rect(), EFalse);
    ...
    }

    void CMessagingContainer:rawBoard() const
    {
    iBackBufferGc->SetBrushStyle( CGraphicsContext::ENullBrush);
    iBackBufferGc->Clear(iClientRect);
    CFbsBitmap* icon = NULL;
    CFbsBitmap* iconmask = NULL;
    TRect rect;
    ...
    iBackBufferGc->BitBltMasked(TPoint(30,30),icon,rect,iconmask,EFalse);
    }
    void CMessagingContainer:raw( const TRect& aRect ) const
    {

    CWindowGc& gc = SystemGc();

    MAknsSkinInstance* skin = AknsUtils::SkinInstance();
    MAknsControlContext* cc = AknsDrawUtils::ControlContext( iListBox );
    if(AknsDrawUtils::HasBitmapBackground(skin,cc) )
    {
    AknsDrawUtils::Background(skin,cc,this,gc,aRect);
    }

    gc.BitBlt(aRect.iTl, iBackBufferBitmap);
    }

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    16

    Smile Re: Help Help, Daw with double buffer and background.

    ok,
    I had solution the poblem

  3. #3
    Registered User
    Join Date
    Jul 2007
    Location
    Lodz, Poland
    Posts
    9

    Re: Help Help, Daw with double buffer and background.

    Hi,
    I have the same problem could you share with me what have you done to solve this?

    Thanks

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    30

    Re: Help Help, Daw with double buffer and background.

    hi guys
    i m facing same problem so can i have solution for that?

    thanks in advance
    Vijay Narayandasani

Similar Threads

  1. why my double buffering failed???
    By ljcsworder in forum Symbian
    Replies: 5
    Last Post: 2006-07-25, 03:28
  2. why my double buffering failed???
    By ljcsworder in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2006-07-25, 03:28
  3. unable to copy bitmap to back buffer. please help
    By itenel in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-09-30, 06:56
  4. Can't copy bitmap to back buffer. help please
    By itenel in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-04-06, 08:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×