Hi everyone,
I have made a program which downlaods an image from a certain URL when it is run, and deposits it in My Documents. I have then made a dailog box to display it in. The image downloads OK, and it is desposited in the My Documents folder, but when I open the window to display it, the old version is displayed, despite the fact that I have downloaded and displayed the latest image from the URL.
Here is the code, which is set to download the image and then display it:
It just seems to pull the last image from its memory, even though the actual image in My Documents has changed. How do I refresh it to display the image after I have made changes?Code:case IDC_SUN: { HRESULT hr = URLDownloadToFile ( NULL, _T("http://georgek.heliohost.org/Asteroid.bmp"), _T("c:/Documents and Settings/XP/My Documents/latest.bmp"), 0, NULL ); } DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_SUNPAGE), hwnd, ToolDlgProc); break;
Thanks.