CBaseWindow.PrepareWindow method

The PrepareWindow method creates the window.

Syntax

virtual HRESULT PrepareWindow();

Parameters

This method has no parameters.

Return value

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

Return code 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.

Requirements

Header
Winutil.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CBaseWindow Class