Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IDragSourceHelper2::SetFlags method

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

Syntax


HRESULT SetFlags(
  [in]  DWORD dwFlags
);

Parameters

dwFlags [in]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.