Available in the LEADTOOLS Imaging toolkit. |
OLEDropFile event (Main Control)
Visual Basic
example
Visual
C++ 4.0 example
Syntax void OLEDropFile (BSTR pszName);
Overview: Refer to Loading a Bitmap from a File.
Remarks
OLEDropFile event occurs each time a file is dropped in a drag and drop operation, if OLEDropAllowed is set to TRUE. The event takes the name of the file being dropped as a parameter.
To avoid loading the dropped file, set OLEDropAutoLoad to FALSE in the event.
After returning from the event, the Main control determines whether the OLEDropAutoLoad is TRUE. If it is TRUE, the file is loaded. If it is FALSE, no further action is taken.
See Also
Elements: OLEDropAutoLoad, OLEDropAllowed
Topics: Working
with the Control: General Behavior
Raster Images: Loading Files