Hi Herman,
>Now, I'm rather confusing with that. Synchronizing the color is just how you want to pick the color. Either from OS or create your own color. But the main things is GradientFill() API can make any gradient colors you want! as I said, the code is just the sample. But you can use this API to make gradient color more than you thing it is!
CommandBars supports 6 VisualThemes. Each of these themes has a set of colors which may be fully or partially related to the current XP color scheme - or totally independent of the current XP color scheme.
I'm not sure how Alex is deriving his start and stop colors for gradients, but whatever his technique, he does a great job of matching MS Office 2000, XP, 2003, and VS Studio 2005 (beta)'s color schemes under various XP themes.
Malcolm