Microsoft DirectX 9.0

CBaseWindow::PrepareWindow

The PrepareWindow method creates the window.

Syntax

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.

Remarks

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