469,160 Members | 1,832 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,160 developers. It's quick & easy.

Single Pixel update bar for progress bars

I want to do a single pix update bar instead of the big block that progress
bars usually use. I can't seem to find any info on how to do this.

Thanks in advance for any help,
Kyle
Nov 17 '05 #1
6 2242
"Kyle" <ku****@l3-com.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I want to do a single pix update bar instead of the big block that progress bars usually use. I can't seem to find any info on how to do this.


I'm not sure I understand. A single pixel-high progress bar? You'd probably
be better off posting in a UI group to see if the standard control will do
that. If not, or you want to roll your own, try a GDI group and perhaps take
a gander at FillRect() or Rectangle() to draw the progress par itself.

Regards,
Will
Nov 17 '05 #2
"William DePalo [MVP VC++]" <wi***********@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
"Kyle" <ku****@l3-com.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I want to do a single pix update bar instead of the big block that

progress
bars usually use. I can't seem to find any info on how to do this.


I'm not sure I understand. A single pixel-high progress bar? You'd probably
be better off posting in a UI group to see if the standard control will do
that. If not, or you want to roll your own, try a GDI group and perhaps take
a gander at FillRect() or Rectangle() to draw the progress par itself.


He wants the standard control. He just wants the PBS_SMOOTH style.
http://msdn.microsoft.com/library/de...bar/styles.asp

Ken
Nov 17 '05 #3
Thanks very helpful...
I can't find the "style" attribute anywhere in the .NET IDE listings for
progress bar. I assume that one needs to customize a control or take a
circular route to build this style of progress bar.
Kyle
"Ken Alverson" <US********@Alverson.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
"William DePalo [MVP VC++]" <wi***********@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
"Kyle" <ku****@l3-com.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I want to do a single pix update bar instead of the big block that progress
bars usually use. I can't seem to find any info on how to do this.


I'm not sure I understand. A single pixel-high progress bar? You'd probably be better off posting in a UI group to see if the standard control will do that. If not, or you want to roll your own, try a GDI group and perhaps take a gander at FillRect() or Rectangle() to draw the progress par itself.


He wants the standard control. He just wants the PBS_SMOOTH style.

http://msdn.microsoft.com/library/de...bar/styles.asp
Ken

Nov 17 '05 #4
"Kyle" <ku****@l3-com.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Thanks very helpful...
I can't find the "style" attribute anywhere in the .NET IDE listings for
progress bar. I assume that one needs to customize a control or take a
circular route to build this style of progress bar.


You didn't mention earlier if you were using .Net or MFC or WTL or straight
Win32 or what.

That said, I don't know if the style property of the native progress bar is
accessible via .Net. Perhaps someone more knowledgeable of winforms will
chime in here.

Ken
Nov 17 '05 #5
Ken,
Sorry.. I am using .NET with the standard IDE and the standard forms, tools,
etc. Just put a normal progress bar on a dialog and wanted to update the
bar one pixel at a time. There isn't a Style property anywhere I can find.
Looks like the create must be called with the style flags... This is
probably straight forward for some gui guys but I am a bit of a newbie to
this.

Thx
Kyle
"Ken Alverson" <US********@Alverson.net> wrote in message
news:u2**************@TK2MSFTNGP10.phx.gbl...
"Kyle" <ku****@l3-com.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Thanks very helpful...
I can't find the "style" attribute anywhere in the .NET IDE listings for
progress bar. I assume that one needs to customize a control or take a
circular route to build this style of progress bar.
You didn't mention earlier if you were using .Net or MFC or WTL or

straight Win32 or what.

That said, I don't know if the style property of the native progress bar is accessible via .Net. Perhaps someone more knowledgeable of winforms will
chime in here.

Ken

Nov 17 '05 #6
Kyle schrieb:
I want to do a single pix update bar instead of the big block that progress
bars usually use. I can't seem to find any info on how to do this.


There is a How-To and a Sample for C#, but it should be
applicable to C++:

http://support.microsoft.com/default...b;en-us;323116

Gruß RH

Nov 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Michael Widenius | last post: by
1 post views Thread by Xarky | last post: by
4 posts views Thread by aj | last post: by
14 posts views Thread by Todd Denlinger | last post: by
11 posts views Thread by simon | last post: by
5 posts views Thread by Keith Rebello | last post: by
11 posts views Thread by brother52 | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.