Thread: Progress bars in XP

  1. #1
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879

    Post Progress bars in XP

    Hey everyone, I just found out about a problem with my progress bars. For some reason, if I make a dialog box resource with MSVC's resource editor and add a progress bar control to it, no matter what I do the dialogbox that the progressbar is in just won't show up. Once I remove the progressbar, the dialog shows up fine and all though.

    I first noticed this when my friend running XP (and me running 98SE) couldn't see the "file transfer" dialog in a client when downloading a file from my server program. On 98, it showed up fine, so I didn't know what was wrong. Then I moved to XP, and just lately I've tried making another dialog app with a progress bar, and after about an hour of re-creating workspaces/projects/remaking the dialog resource, I finally found out that the problem was the progress bar.

    Is this a problem with MSVC's resource editor, or a bug in XP, or do I just have to manually create the progress in my code, or has progressbar support been removed in XP or something??
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    A progress bar is a common control, if I recall correctly. Did you #include <commctrl.h>, call InitCommonControls() and link to the comctl32.lib library?

  3. #3
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    *Doh.*

    No, I didn't I just figured that out about 10 seconds ago, after searching my packaged-with-compiler MSDN for about half an hour, then finding it on the online one...

    Funny, how the common controls didn't need initialization when I was running Windows98 SE. Maybe I just got lucky before

    Thanks for the reply!
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  2. Changing progress bars in win32....
    By jverkoey in forum Windows Programming
    Replies: 6
    Last Post: 04-27-2003, 03:32 AM
  3. progress bars with Win32 API
    By bennyandthejets in forum C++ Programming
    Replies: 15
    Last Post: 09-10-2002, 04:25 AM
  4. Progress Bars
    By knight543 in forum Windows Programming
    Replies: 1
    Last Post: 08-21-2002, 10:45 AM
  5. Progress bars... HELP!!!
    By Prog.Patterson in forum Windows Programming
    Replies: 4
    Last Post: 02-13-2002, 12:00 PM