Hey,
I'm pretty new to programing. I have written a few simple window applications and I was wondering how to make a background for them. Preferable using a picture I have. Is this possible? I have looked everywhere and I can't find any helpful links.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you are writing GUI windows apps there are two common ways.
1) Load a bitmap and use CreatePatternBrush which then can be passed as the HBRUSH parameter when initializing your WNDCLASSEX.
(This method assumes the window will be a fixed size)
2) Handle the WM_PAINT message in your WindowProc and blit the image into the device context.
Hey,
I'm pretty new to programing. I have written a few simple window applications and I was wondering how to make a background for them. Preferable using a picture I have. Is this possible? I have looked everywhere and I can't find any helpful links.
Thanks
If you are writing GUI windows apps there are two common ways.
1) Load a bitmap and use CreatePatternBrush which then can be passed as the HBRUSH parameter when initializing your WNDCLASSEX.
(This method assumes the window will be a fixed size)
2) Handle the WM_PAINT message in your WindowProc and blit the image into the device context.
Check out this site for examples on the second method:
http://www.winprog.org/tutorial/