INameSpaceTreeControl::Initialize method (shobjidl_core.h)

Initializes an INameSpaceTreeControl object.

Syntax

HRESULT Initialize(
  [in] HWND      hwndParent,
  [in] RECT      *prc,
  [in] NSTCSTYLE nsctsFlags
);

Parameters

[in] hwndParent

Type: HWND

The handle of the parent window.

[in] prc

Type: RECT*

A pointer to a RECT structure that describes the size and position of the control in the client window.

[in] nsctsFlags

Type: NSTCSTYLE

The characteristics of the given namespace tree control. One or more of the following values from the NSTCSTYLE enumeration.

Return value

Type: HRESULT

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

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)