Talk:OpenGL Programming/GLStart/Tut2

A lot of OpenGL documentation mentions the need to use CS_OWNDC as a Windows style when registering the Window. I did see some mentions that one can create and store a DC in WM_CREATE and release it in WM_CLOSE or WM_DESTROY. Then CS_OWNDC may not be necessary. However, I didn't see much as to pros and cons of using or avoiding CS_OWNDC. Advice at the Microsoft web site is typically to avoid CS_OWNDC as it takes up memory and resources. However, creating a DC and not releasing it until the program ends does this as well. I also saw some comments that some earlier versions of Windows crashed (before XP) if the code did not include CS_OWNDC. Also, read that CS_OWNDC was not available for WINCE. Would love to see more concrete information as to when this setting may be needed and if it's better or worse under certain circumstances to include it.