How do i go about creating an app in mfc where there is a series of buttons and when you press one it loads an image, then if you press another one a different image loads?
i am using vc++ 2008 to do this
Sarlacc 0 Newbie Poster
Recommended Answers
Jump to Postyou need to write an event handler for each of those buttons. Inside the event handler is where you put the code to load and display the image you want. As I recall, to create an event handler function for a button just right-click the button and you will see …
Jump to PostThe class that was Jencas previously mentioned was of type CDialog. He was trying to describe how to create an event handler, which apparently you already know how to do.
You said in your original post you want to "load and image" when you hit a button. All that …
Jump to PostNot necessarily -- if the images will never change then just put them in the resource section.
All 10 Replies
Freaky_Chris 299 Master Poster
Sarlacc 0 Newbie Poster

jencas
Sarlacc 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Sarlacc 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Sarlacc 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Sarlacc 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.