CBaseWindow::CBaseWindow
Microsoft DirectShow 9.0 |
CBaseWindow::CBaseWindow
Constructor method.
Syntax
CBaseWindow( BOOL bDoGetDC = TRUE BOOL bPostToDestroy = FALSE );
Parameters
bDoGetDC
Boolean value that specifies whether to retrieve the device context.
bPostToDestroy
Boolean value that specifies the CBaseWindow::m_bDoPostToDestroy member variable.
Remarks
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.
Requirements
** Header:** Declared in Winutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also