If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I have created the bitmap and picture frame resources in the RC file, and assigned the bitmap to the frame in the above line. When I run the program, the image displays, but if I change the image and restart the program, it stays the same when the program displays it. How do I make it refresh the image?

Re: Images and dialog boxes

Please use code tags.

I didn't look at your code, but what do you mean by "change the image"? Do you change it in the resource editor, or with some external program? If with an external program, do you recompile after changing the image? The image that resides in the res folder is linked into the program resources at compile time. Once compiled, the image is ignored by the program until you recompile.

Re: Images and dialog boxes

I tried to find the button for code tags, but I couldn't. Do I have to put them in manually?

Anyway, yes - that's what I mean, and that explains why it doesn't change when I use paint to modify it. Are there any commands I can use to make it read from the image instead of keeping the image it integrated while compiling?

Re: Images and dialog boxes

Thanks for the advice - the idea of the program is that it downloads a picture of the Sun from a set URL (http://sohowww.nascom.nasa.gov/data/...024/latest.jpg) and displays it when the window is opened. I have got it to downlod, and, now I know that I need to recompile every time I want to view the new image.

Re: Images and dialog boxes

Loading an image has its own complications due to the fact that files are stored as device independent bitmaps (DIBs) and windows drawing uses DDBs internally. This article should give you a place to start: