#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. |
The previous state.
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. |
Functions: |
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;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET