共用方式為


Present method

Displays a back buffer in a rectangle on the surface.

 

Syntax

HRESULT retVal = object.Present(uBuffer, pDirty);

Parameters

  • uBuffer [in]
    Type: UINT

    The index of which back buffer to present.

  • pDirty [in]
    Type: RECT

    A RECT structure that represents the buffer to copy.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.