Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Vector C++ Class Library Help

LVectorWindow::EnableDragAcceptFiles

Show in webframe

#include "ltwrappr.h"

L_BOOL LVectorWindow::EnableDragAcceptFiles(bDragAcceptFiles)

L_BOOL bDragAcceptFiles;

/* flag that indicates whether to enable drag and drop */

Enables or disables dragging and dropping files for the class object's window.

Parameter

Description

bDragAcceptFiles

Flag that indicates whether to enable or disable drag and drop. Possible values are:

 

Value

Meaning

 

TRUE

Enable drag and drop.

 

FALSE

Disable drag and drop.

Returns

The previous state.

Comments

This setting is enabled by default.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LVectorWindow::IsDragAcceptFilesEnabled, Class Members

Example

Assumes pVectorWindow points to a valid LVectorWindow object.

L_INT LVectorWindow__EnableDragAcceptFilesExample(HWND hWndParent, LVectorWindow *pVectorWindow)
{
   //Toggle DragAcceptFile state
   L_BOOL bDragAcceptFile = pVectorWindow->IsDragAcceptFilesEnabled();
   bDragAcceptFile = !bDragAcceptFile;
   pVectorWindow->EnableDragAcceptFiles(bDragAcceptFile);
   if (bDragAcceptFile)
      SetWindowText(hWndParent, TEXT("DragAcceptFiles is enabled.  Drag a file into the window."));
   else
      SetWindowText(hWndParent, TEXT("DragAcceptFiles is disabled."));
   return SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.