Microsoft DirectX 9.0 |
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.)
See Also