IDirectDrawClipper::SetHWnd method (ddraw.h)

Sets the window handle that the clipper object uses to obtain clipping information.

Syntax

HRESULT SetHWnd(
  [in] DWORD unnamedParam1,
  [in] HWND  unnamedParam2
);

Parameters

[in] unnamedParam1

Currently not used and must be set to 0.

[in] unnamedParam2

Window handle that obtains the clipping information.

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_INVALIDCLIPLIST
  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS
  • DDERR_OUTOFMEMORY

Requirements

Requirement Value
Target Platform Windows
Header ddraw.h
Library Ddraw.lib
DLL Ddraw.dll

See also

IDirectDrawClipper