LVectorWindow::EnableDragAcceptFiles

Summary

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

Syntax

#include "ltwrappr.h"

L_BOOL LVectorWindow::EnableDragAcceptFiles(bDragAcceptFiles)

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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.