Thread: Loading Screen

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    112

    Loading Screen

    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?

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    Store the dialog HWND in a global variable, or kill the thread.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    112
    Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  2. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  3. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  4. loading map and rendering to the screen???
    By werdy666 in forum Game Programming
    Replies: 4
    Last Post: 10-26-2002, 03:09 AM
  5. Loading Screen
    By pinkcheese in forum Windows Programming
    Replies: 8
    Last Post: 05-20-2002, 10:35 PM