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?? :eek: :confused:
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?
No, I didn't :rolleyes: 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 :cool:
Thanks for the reply! :)