I have been trying to use opengl in a mfc dialog box. I accomplished the task in the first dialog box. But if I open another dialog box from my main dialog box, I'm not able to use opengl in it. I have used the same method for opengl in the 2nd dialog box also, but it is not displaying anything. Could anyone please help me with it.