Advertisement Jump to content
Sign in to follow this  
GetWindowRect

How to display a picture on controls.

This topic is 4900 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I would like to display pictures on some different types of controls to make applications look different and/or more appealing. I would like to figure out how to display background images onto, for example, buttons, scrollbars, textboxes etc... In order to load an image onto a normal window I use the WM_ERASEBKGND or WM_PAINT, however I do not know how to process those messages for indiviual controls, only the window. I am sure there is a way to do it, I just have no idea how to go about doing it. Another thing I would like to do, if it would not be too difficult, would be to display these images semi transparent so text could be more easily read on the image. If anyone has any idea how to point me in the right direction, or samples/examples of any kind, I would appreciate it greatly. Thanks you in advance.

Share this post


Link to post
Share on other sites
Advertisement

This topic is 4900 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!