LVectorWindow::EnableDragAcceptFiles

#include "ltwrappr.h"

L_BOOL LVectorWindow::EnableDragAcceptFiles(bDragAcceptFiles)

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

Parameters

L_BOOL 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

See Also

Functions

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; 
} 

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help