IExplorerBrowser::SetRect method (shobjidl_core.h)

Sets the size and position of the view windows created by the browser.

Syntax

HRESULT SetRect(
  [in, out] HDWP *phdwp,
  [in]      RECT rcBrowser
);

Parameters

[in, out] phdwp

Type: HDWP*

A pointer to a DeferWindowPos handle. This parameter can be NULL.

[in] rcBrowser

Type: RECT

The coordinates that the browser will occupy.

Return value

Type: HRESULT

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

Remarks

Coordinates are relative to the hwndParent passed in IExplorerBrowser::Initialize.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)