|Microsoft DirectX 9.0|
CBaseWindow( BOOL bDoGetDC = TRUE BOOL bPostToDestroy = FALSE );
Boolean value that specifies whether to retrieve the device context.
Boolean value that specifies the CBaseWindow::m_bDoPostToDestroy member variable.
After you create the object, call the CBaseWindow::PrepareWindow method to create the window. PrepareWindow is a virtual method. It calls CBaseWindow::InitialiseWindow, also a virtual method. These methods are separated from the constructor so that derived classes can override them, if necessary.
If the value of the bDoGetDC parameter is TRUE, the CBaseWindow object retrieves a handle to the window's device context (DC) and stores it in the CBaseWindow::m_hdc member variable. The object also creates a compatible memory DC, which it stores in the CBaseWindow::m_MemoryDC member variable. These actions occur in the InitialiseWindow method.