IDragSourceHelper2::SetFlags method (shobjidl.h)

Sets the characteristics of a drag-and-drop operation over an IDragSourceHelper object.

Syntax

HRESULT SetFlags(
  [in] DWORD dwFlags
);

Parameters

[in] dwFlags

Type: DWORD

The flags that determine the characteristics of a drag-and-drop operation over an IDragSourceHelper object.

DSH_ALLOWDROPDESCRIPTIONTEXT (0x0001)

Allow text specified in DROPDESCRIPTION to be displayed on the drag image. If you pass this flag into the dwFlags parameter of IDragSourceHelper2::SetFlags, then the text description is rendered on top of the supplied drag image. If you pass a drag image into an IDragSourceHelper object, then by default, the extra text description of the drag-and-drop operation is not displayed.

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.h
DLL Shell32.dll