need some help!!!!!

i need to setup an application with multiples documents and one of those need to be set up using opengl(the child one) and i really dont know how to do that, i will be really thanksfull