|Microsoft DirectX 9.0|
The DoneWithWindow method destroys the window.
virtual HRESULT DoneWithWindow(void);
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.)