Microsoft DirectX 9.0


The PrepareWindow method creates the window.


virtual HRESULT PrepareWindow(void);

Return Value

Returns an HRESULT value. Possible values include those shown in the following table.

Value Description
S_OK Success.
E_FAIL Failure.


Call this method after creating the object. This method performs some initial bookkeeping and then calls the CBaseWindow::DoCreateWindow method to create the window.

See Also