Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EYE Candy: I want to add a picture

Status
Not open for further replies.

Insider1984

Technical User
Feb 15, 2002
132
US
I'm programming in a MCF .exe dialog template.

I have a series of programs that all have the same base but with different functions (they use the same inputs). So they basically all have the same first screen. I want to be able to have people determine the difference between them and I show the "Picture" button on the controls.

it adds a little location in my window but from there I'm stumped on how to build in a bitmap for use in that box I created.

can anyone help me out?
 
Sure, but can you be a bit more specific.

William
Software Engineer
ICQ No. 56047340
 
Sorry.... I have an MFC C++ Dialog based program. In this dialog box I want to add a picture (32x32 pixels) called PIP.bmp. So when people double click my application the dialog will contain the picture I specify.

Thanks for the help again.
 
First Add the BMP you want to use as a resource.

Then Add a picture control to your DLG where you want the BMP to appear. Edit the controls' properties and set it's Type to Bitmap. Then from the Image list select the ID of the Image you added as a resource.

:)




William
Software Engineer
ICQ No. 56047340
 
Thank you! =-)

I successfully added the image without any issues =-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top