×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    166

    how to creat a wallpaper?

    hi
    i want my app to show a wallpaper from beginning to end.
    then i add the below to my mmp file.
    ---------------------------------------
    START BITMAP myapp.mbm
    HEADER
    SOURCEPATH ..\pic
    TARGETPATH system\apps\myapp
    SOURCE c24 Logo.bmp
    END
    ---------------------------------------
    and in the ui.cpp
    add the code below
    -----------------------------
    #include <eikenv.h>
    #include <MP3Player.rsg> // resource file use
    #include <MP3Player.mbg> // Bitmap enumeration
    #include <aknutils.h>
    ................
    _LIT(KDrawBitmapPath, "\\system\\apps\\myapp\\myapp.mbm");
    TFileName bitmapFile (KDrawBitmapPath);
    User::LeaveIfError (CompleteWithAppPath (bitmapFile));
    iEikonEnv->CreateBitmapL(bitmapFile, 0);
    -----------------------------
    but nothing showed up?
    and when i closed my app, the message showed up
    ------------
    myapp has been closed, cone 8
    ------------
    what's wrong? any conclusion?

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Location
    india
    Posts
    306

    Re: how to creat a wallpaper?

    _LIT(KDrawBitmapPath, "\\system\\apps\\myapp\\myapp.mbm");
    TFileName bitmapFile (KDrawBitmapPath);
    User::LeaveIfError (CompleteWithAppPath (bitmapFile));
    iBgImg = new (ELeave) CFbsBitmap();
    iBgImg->Load(bitmapfile,enumid); ...u will get enumid from .mbg file

    in ur draw method

    call gc.BitBlt(TPOint(0,0),iBgImg);


    CFbsBitmap* iBgimg;



    bye
    N

  3. #3
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    166

    Re: how to creat a wallpaper?

    thanks for reply, i had already done it.

Similar Threads

  1. 6630 wallpaper bug
    By dakku in forum Symbian
    Replies: 0
    Last Post: 2004-12-29, 20:45
  2. Wallpaper - 4096 colors
    By blondebeard in forum Digital Rights Management & Content Downloading
    Replies: 0
    Last Post: 2004-01-29, 05:30
  3. How do i change the wallpaper on S60.
    By worreour in forum Symbian
    Replies: 1
    Last Post: 2004-01-05, 05:59
  4. wallpaper
    By Jorrti in forum General Messaging
    Replies: 1
    Last Post: 2003-02-18, 09:38

Posting Permissions

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