Need Help in focusing windows..

Hello…

help me to control the second window which is coming from first window button click. i cant set the second window in front… plz help me…

i doubt there is a method for this if your using freeglut/glut look into the windows api