Need Skeleton code using OpenGL in a new dialog

I use openGL in a SDI VC program, draw 3D mesh or model, now i want to add a dialog when i click a menu item, use this dialog to show a texture-mapped model.
I try to add some OpenGL initialization codes to the new dialog like in my SDI main program adding codes to View file, but it does not work.
Anyone has this starting code?
thanks,

[This message has been edited by sujin (edited 02-16-2000).]