LVectorWindow::EnableDragAcceptFiles
#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: |
Example
//Assumes pVectorWindow points to a valid LVectorWindow object
L_VOID Example21(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."));
}