CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2004
    Posts
    4

    How to Insert a photograph in a dialog Box

    Hi,
    How can I have a photo(*.gif) in a Dialog box?
    Thanks,
    Deepak Samuel.

  2. #2
    Join Date
    Jan 2004
    Location
    Altos
    Posts
    168
    easiest way is to add the microsoft picture clip activex control. it wll solve ur problem...
    "I came"
    "I saw"
    "I conquered"

  3. #3
    Join Date
    Aug 1999
    Location
    Wisconsin
    Posts
    507
    Another option is to convert your picture to bmp format, then add it as a picture control in your dialog's resource file.

  4. #4
    Join Date
    Mar 2004
    Posts
    147
    How to add it as a picture control in your dialog's resource file ?

    Step pls..

    Thanks.

  5. #5
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211
    You may also look at CxImage, its free and support many formats, plus different files conversations as well. Images from resource or external files, both can be used pretty easily.

    You can display the picture in any window with that.
    Last edited by Ejaz; March 13th, 2004 at 10:35 AM.

  6. #6
    Join Date
    Jan 2004
    Location
    Altos
    Posts
    168

    Post

    Originally posted by Dimension
    How to add it as a picture control in your dialog's resource file ?

    Step pls..

    Thanks.
    first of all using the appwizard add support for activex controls then in dialog editor right click on the dialog nd select activex control. now frm the list box select the picture control
    "I came"
    "I saw"
    "I conquered"

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