Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor ipis's Avatar
    Join Date
    Sep 2005
    Posts
    166
    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 giridharn's Avatar
    Join Date
    Oct 2004
    Location
    india
    Posts
    306
    _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 ipis's Avatar
    Join Date
    Sep 2005
    Posts
    166
    thanks for reply, i had already done it.

Similar Threads

  1. 6630 wallpaper bug
    By dakku in forum Symbian C++
    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 C++
    Replies: 1
    Last Post: 2004-01-05, 05:59
  4. Can I download NOKIA's wallpaper using other phones?
    By lzyq in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2003-03-05, 09:13
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved