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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I display images in an MFC dialog? 2

Status
Not open for further replies.

edmund1978

Programmer
Jan 25, 2001
58
GB
I need to display many small images in an MFC dialog, basically to represent a map using the images as tiles. How do you display images like this? Also I would need to display other images on top of this layer, would this be posible?
 
You need to read about drawing (painting) in Win32 applications. The system provides you with User Kernel objects called 'Device Context'. Then you can interact with the object(s) using the Win32 API functions provided for drawing.

Good luck
-pete
 
Do you know of any simple tutorials, I've been looking and can't find any. I just need to know basics so I can display image tile for the map. There isn't much else I have to do with graphics
 
Another place to look is The MFC Answer Book, by Eugene Kain. Pages 290-294 cover this subject
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top