Display picture Dialog Box


hye All,

I have just started using MFC to create dialog boxes in Visual C++
and I wanted to if it is possible to insert a picture(e.g bitmap picture) in the dialog box.

If so, how can this be done?

many thanks!

Best Regards,

NeoBoY.

Comments

  • [b][red]This message was edited by the AsmGuru62 at 2002-7-3 6:42:2[/red][/b][hr]
    :
    : hye All,
    :
    : I have just started using MFC to create dialog boxes in Visual C++
    : and I wanted to if it is possible to insert a picture(e.g bitmap picture) in the dialog box.
    :
    : If so, how can this be done?
    :
    : many thanks!
    :
    : Best Regards,
    :
    : NeoBoY.
    :
    [blue]1. Attach your bitmap into your .RC file using import feature of the VC++ resource editor. Also, you can just draw it yourself using the same editor...

    2. Drop a 'Picture' control on the dialog and setup the ID of that bitmap for it - there is a combo box with all bitmap IDs.[/blue]


  • This is fine if we know the where about of bitmap at compile time. But if we have to use at run time.

    I mean I want to load a bitmap from system location and display the same in say picture box.

    Any idea, or link explaining this concept.

    Welcome in case of any clarification.

    Thanks in advance.
  • This post has been deleted.
  • This post has been deleted.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories