|Microsoft DirectX 9.0|
The OnClose method handles WM_CLOSE messages.
virtual BOOL OnClose(void);
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.