PDA

View Full Version : CWnd style using OpenGL



Condor
05-06-2002, 10:40 PM
Hello,
I've got one more question.
What style should have a window (derived from CWnd) in which the OpenGL technology is used?
I place this window on a dialog using the standart CWnd::Create() function. So I should pass in the window style as an argument.
I have found some information ragarding to the preferable style. It is worth using WS_CLIPCHILDREN and WS_CLIPSIBLINGS styles plus starndart styles like WS_VISIBLE and WS_CHILD. However using mentioned styles together I met with a problem: sometimes the window stops responding. It occurs when the SetPixelFormat() is invoked. Without WS_CLIPCHILDREN and WS_CLIPSIBLINGS styles it goes fine.
Where is a problem?
Thank you in advance,
Condor

Furrage
05-07-2002, 06:46 AM
This is a double post. Ignore it and respond to the other copy http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/008484.html