How to make tray programme?

I have a window programme based on opengl(glut library),now I want to add some new features to it to make it a tray progrmme,I have checked the opengl books and looked it up on the Internet,but found nothing.Can somebody please tell where I should add my code(glutKeyboardFunc?glutMotionFunc?).Best with some code to demonstrate.

thx soooooooooo much

Please don’t cross-post: http://www.opengl.org/discussion_boards/…;gonew=1#UNREAD