C++ MFC

Moderators: Lundin
Number of threads: 3337
Number of posts: 9005

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Display picture Dialog Box Posted by neoboy on 3 Jul 2002 at 4:38 AM

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.
Report
Re: Display picture Dialog Box Posted by AsmGuru62 on 3 Jul 2002 at 6:41 AM
This message was edited by the AsmGuru62 at 2002-7-3 6:42:2

:
: 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.
:
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.



Report
Re: Display picture Dialog Box Posted by anmol2701 on 23 Jun 2011 at 3:39 AM
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.
Report
This post has been deleted. Posted by anmol2701 on 23 Jun 2011 at 3:42 AM
This post has been deleted.
Report
This post has been deleted. Posted by anmol2701 on 23 Jun 2011 at 3:46 AM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.