vSi
puņ cambiare con cui viene create una finestra MFC modificando la PreCreateWindow
v
vBOOL MyOpenGLView::PreCreateWindow(CREATESTRUCT&
cs)
v{
v // An OpenGL window must be created with the following
flags and must not
v // include CS_PARENTDC for the class style. Refer to
SetPixelFormat
v // documentation in the "Comments" section
for further information.
v cs.style |= WS_CLIPSIBLINGS | WS_CLIPCHILDREN | CS_OWNDC;
v if(cs.style&CS_PARENTDC)
v {
v AfxMessageBox("Win OpenGL Internal
Error!");
v return FALSE;
v }
v
v return CView::PreCreateWindow(cs);
v}
v