Game Development Reference
m_hRC = NULL;
m_hDC = NULL;
// Now the associated DC can be released.
So now we can create a window with either GLUT or an MFC application.
A Win32 application would need to ensure that the window style
conformed to the WS_CLIPCHILDREN and WS_CLIPSIBLINGS styles
when the window is first being created and respond to WM_CREATE,
WS_DESTROY messages. Check out Win32Example on the CD for more
details. Most of the examples in this topic use MFC as the basis because
the author finds it convenient to create menus and respond to events
Figure 3.3 Win32 Example program.