Partager via


CBaseWindow::DoneWithWindow

 
Microsoft DirectShow 9.0

CBaseWindow::DoneWithWindow

The DoneWithWindow method destroys the window.

Syntax

  virtual HRESULT DoneWithWindow(void);

Return Value

Returns S_OK.

Remarks

Call this method from the derived object's destructor method.

If this method is called from the same thread that created the window, the method performs the following actions:

If the thread calling DoneWithWindow is not the thread that created the window, the method sends a private "destroy" message to the window. When the window receives this message, it calls DoneWithWindow on itself. (If CBaseWindow::m_bDoPostToDestroy is TRUE, the window posts the message.)

Requirements

**  Header:** Declared in Winutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also