Sorry, I don't have any neat package of code to give - it's all tied in with other stuff.
Although XMPlay doesn't use standard Windows controls (buttons/scrollers/etc), you could probably recreate a similar effect/behaviour subclassing the standard controls.