IWebBrowser2::RegisterAsDropTarget Property
Sets or gets a value that indicates whether the object is registered as a drop target for navigation.
Syntax
HRESULT IWebBrowser2::get_RegisterAsDropTarget(VARIANT_BOOL *pbRegister); HRESULT IWebBrowser2::put_RegisterAsDropTarget(VARIANT_BOOL bRegister);
Parameters
- pbRegister
Pointer to a variable of type VARIANT_BOOL that receives one of the values listed in Possible Values.- bRegister
VARIANT_BOOL that specifies one of the values listed in Possible Values.
Possible Values
VARIANT_FALSE Default. Object is not registered as a drop target. VARIANT_TRUE Object is registered as a drop target.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
A drop target is an object that has been registered to accept data from a drag-and-drop operation.
The WebBrowser object delegates this method to the top-level frame. If no frame exists, it returns E_FAIL.