Partager via


CBaseWindow::OnClose

 
Microsoft DirectShow 9.0

CBaseWindow::OnClose

The OnClose method handles WM_CLOSE messages.

Syntax

  virtual BOOL OnClose(void);

Return Value

Returns TRUE.

Remarks

In the base class, this method simply hides the window. Typically, a derived class will override this method so that it sends an EC_USERABORT event as well. Do not override the method to destroy the window. Instead, call the CBaseWindow::DoneWithWindow method when the owning filter is destroyed.

Requirements

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

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

See Also