The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: czDrillard on December 23, 2004, 01:17:47 AM

Title: Progress bar Marquee style
Post by: czDrillard on December 23, 2004, 01:17:47 AM
Hello everybody,

I'm having problems with setting marquee style progress bar.


                invoke CreateWindowEx,NULL,ADDR ProgressClass,NULL,\
                                    WS_CHILD+WS_VISIBLE+PBS_MARQUEE,401,2,399,ecx,\
                                    hWndStatus,IDC_PROGRESS,hInstance,NULL
               
                mov hwndProgress,eax
                invoke SendMessage,hwndProgress,PBM_SETMARQUEE,TRUE,100


I set PBS_MARQUEE equ 08h and PBM_SETMARQUEE equ WM_USER+410h in the inc file


The progress bar is displayed but the shaded area stays at the right and doesn't move.  Can't figure out what it needs.  Any ideas or suggstions would be much appreciated.

best regards,

czDrillard
Title: Re: Progress bar Marquee style
Post by: donkey on December 23, 2004, 06:13:58 AM
Have you included a common controls version 6 manifest with your application ? It is required for the PBS_MARQUEE style to be enabled.
Title: Re: Progress bar Marquee style
Post by: czDrillard on December 23, 2004, 02:48:36 PM
Hello Donkey and merry christmas or whatever may be the name of your celebration :lol

Yes, I included a manifest and all buttons etc. reflect the windows xp theme.  I was using an actual progress bar with a timer for updating but this is not strickly speaking progress, but rather an activity, so I thought the marquee style more appropriate.  However the marquee remains stuck on the left side of the progress bar.  Do I need to set a timer with this type of control?

best regards,

czDrillard
Title: Re: Progress bar Marquee style
Post by: donkey on December 24, 2004, 12:13:36 AM
Hi czDrillard,

Don't really observe any holidays except the non-religious ones like Remembrance day, New Years and Thanksgiving, so I have not even taken time off work for Christmas. But for those who do, Merry Christmas  (http://www.simplemachines.org/community/Smileys/xmas/afro.gif)

I cant really help with CC6 controls as I generally just write my own when I need something special, I don't have XP to test on (except a very slow virtual machine not really suitable to intensive GUI) so I can't even try out the things.