CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 1999
    Location
    California
    Posts
    264

    How can I Load Picture to Dialog?

    I want to use picture control to insert bitmap. Why does it only accept .ico, not other bitmap like .gif? How can I convert .gif to .ico?

    Thank you for your help.

    kshen





    Best Regards,

    Kevin Shen

  2. #2
    Join Date
    Aug 1999
    Location
    San Diego
    Posts
    155

    Re: How can I Load Picture to Dialog?

    When you plop down a picture control, go into properties and select type. From there you can select whether it is an icon, frame, or Bitmap. Then you can select the bitmap you want to show...


  3. #3
    Join Date
    Aug 1999
    Location
    California
    Posts
    264

    Re: How can I Load Picture to Dialog?

    I tried. The problem is how I can insert a bitmap resource. Insert bitmap only accept .ico, other like .gif only open the binary file to you.

    thanks,

    kshen

    Best Regards,

    Kevin Shen

  4. #4
    Join Date
    Aug 1999
    Location
    San Diego
    Posts
    155

    Re: How can I Load Picture to Dialog?

    Go to the resource tab. Right click mouse... and Select Import. Change the File Type to "All Files(*.*)". Select your bitmap... click Ok... and it will insert it as a resource named IDB_BITMAP1.




  5. #5
    Join Date
    Aug 1999
    Location
    California
    Posts
    264

    Re: How can I Load Picture to Dialog?

    I tried. After Select bitmap... click Ok... It shows Custom Resource Type dialog want me to input Resource Type. After that it open the .gif as a binary file, not a graph like the icon. It looks like vc++ do not accept .gif. How can I do next?

    Thank you for your help.

    kshen

    Best Regards,

    Kevin Shen

  6. #6
    Join Date
    Aug 1999
    Location
    San Diego
    Posts
    155

    Re: How can I Load Picture to Dialog?

    Ok... no they do not accept Gifs... not as resources as far as I know... I thought you were putting a bitmap in.
    There probably is something out there to import Gifs, but if this is a one time thing... ie. This picture will always be apart of
    your code, then convert it to a bitmap using Paint shop pro or something. Other people may know of some libraries to import Gifs... they exist, I just don't lknow about them.

    Sorry



  7. #7
    Join Date
    Aug 1999
    Location
    San Diego
    Posts
    155

    Re: How can I Load Picture to Dialog?

    By the way... a bitmap is not a gif... they are totally different. Its like saying a DVD is just a CD.

    Just to help you clarify that point


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured