Hey, I'm trying to make a loading screen but I'm having trouble closing the load screen once everything is loaded. In WinMain I made a new thread for the loading screen. Then I call that thread which runs a function that opens a dialog with a loading picture on it. Then the program would keep going through WinMain and would download a file to my hardrive. After the file is downloaded I call another dialog for my program. Once the download is done I also want to close the dailog for the loading screen but I can't use EndDialog cause I don't know the HWND value of the loading screen. Does anyone know another way to close the loading dialog?