PLEASE HELP!!!!!! opengl animated slider bar app

The below link is a VC++ OpenGL dialog app with a slider bar that rotates an object. I want to modify it so that the object is say, continually rotating about the x axis, and rotation in the y axis is controlled by the slider. (Thats arbitrary - what i really want to know is how to have an animation whose behavior is modifiable via controls!)

This must be possible - and if anyone could help out Id *Really appreciate it!

that should read


at the end btw.