Thread: Updating a progress bar

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    56

    Updating a progress bar

    I am new to using Visual C++. I used a Control box to create the progress bar in one file. In another file, I want to update the same progress bar so that it looks like it is downloading. How do I do that?
    For example:
    one file, Progress.cpp:
    Creates progress bar.

    Update.Cpp
    Need to update progress bar in Progress.cpp:
    Last edited by NewGuy100; 03-13-2006 at 12:39 PM.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Juneda
    Posts
    291
    send the HWND of the progress bar to the update function, or send the progress parent's window and the progress identifyer, and get it's handler with 'GetDlgItem()'; then simply 'SendMessage()' with that progress handler and with the progress predefined messages to update it.
    niara

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    56
    Thanks for the assist. Is there an example of that? I never used those type before. All i have for the progress bar is a member variable that I named m_pBar and the dialog box, labeled IDD_Progress, where the progress bar is located.
    Last edited by NewGuy100; 03-14-2006 at 09:59 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Progress Bar
    By Stabbsy in forum Windows Programming
    Replies: 4
    Last Post: 11-04-2007, 10:30 PM
  2. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 01:32 PM
  3. Is comctl32.lib required for progress bar controls?
    By JasonD in forum Windows Programming
    Replies: 4
    Last Post: 08-28-2004, 02:30 PM
  4. progress bar newbie
    By WaterNut in forum Windows Programming
    Replies: 18
    Last Post: 08-09-2004, 01:42 PM
  5. File Through Winsock & Progress on bar
    By (TNT) in forum Windows Programming
    Replies: 4
    Last Post: 12-05-2001, 10:50 PM