Post by "ted ", 08-07-2007, 9:17
-----------------------------------------------------
How to implement vista progressbar marquee drawing?
Microsoft define some new theme element for progressbar in vista, see the following:
- <Control name="PROGRESS">
- <Part name="PP_BAR" value="1" >
- </Part>
- <Part name="PP_BARVERT" value="2" >
- </Part>
- <Part name="PP_CHUNK" value="3" >
- </Part>
- <Part name="PP_CHUNKVERT" value="4" />
- <Part name="PP_FILL" value="5">
- <State name="PBFS_NORMAL" value="1" />
- <State name="PBFS_ERROR" value="2" />
- <State name="PBFS_PAUSED" value="3" />
- <State name="PBFS_PARTIAL" value="4" />
- </Part>
- <Part name="PP_FILLVERT" value="6">
- <State name="PBFVS_NORMAL" value="1" />
- <State name="PBFVS_ERROR" value="2" />
- <State name="PBFVS_PAUSED" value="3" />
- <State name="PBFVS_PARTIAL" value="4" />
- </Part>
- <Part name="PP_PULSEOVERLAY" value="7" >
- </Part>
- <Part name="PP_MOVEOVERLAY" value="8" >
- </Part>
- <Part name="PP_PULSEOVERLAYVERT" value="9" >
- </Part>
- <Part name="PP_MOVEOVERLAYVERT" value="10" ></Part>
- <Part name="PP_TRANSPARENTBAR" value="11">
- <State name="PBBS_NORMAL" value="1" />
- <State name="PBBS_PARTIAL" value="2" />
- </Part>
- <Part name="PP_TRANSPARENTBARVERT" value="12">
- <State name="PBBVS_NORMAL" value="1" />
- <State name="PBBVS_PARTIAL" value="2" />
- </Part>
- </Control>
复制代码 May the Chunk, Fill, and MOVEOVERLAY is useful, see the folowing picture:
We can draw the progress bar default effect by draing Chunk + MoveOverlay.
The Marquee chunk element isn't defined directly, and maybe the Marquee chunk seems make some transform for default chunk by MoveOverlay or other.
Welcome your comments. |