OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TFileDroplet encapsulates information about a single dropped file, its name, where it was dropped, and whether or not it was in the client area. More...
#include <owl/wsyscls.h>
Public Member Functions | |
TFileDroplet (const tstring &fileName, const TPoint &p, bool inClient) | |
Supports drag and drop. | |
TFileDroplet (TDropInfo &drop, int i) | |
Constructs a TFileDroplet given a DropInfo and a file index. | |
~TFileDroplet () | |
The destructor for this class. | |
bool | operator== (const TFileDroplet &other) const |
Returns true if the address of this object is equal to the address of the compared object. | |
LPCTSTR | GetName () const |
Returns the name of the file dropped. | |
TPoint | GetPoint () const |
Returns the cursor position at which the file was dropped. | |
bool | GetInClientArea () const |
Returns true if the drop occurred in the client area. | |
TFileDroplet encapsulates information about a single dropped file, its name, where it was dropped, and whether or not it was in the client area.
Supports drag and drop.
Definition at line 24 of file wsyscls.cpp.
Constructs a TFileDroplet given a DropInfo and a file index.
The location is relative to the client coordinates, and will have negative values if dropped in the non-client parts of the window.
DragQueryPoint copies that point where the file was dropped and returns whether or not the point is in the client area. Regardless of whether or not the file is dropped in the client or non-client area of the window, you will still receive the file name.
Definition at line 43 of file wsyscls.cpp.
owl::TFileDroplet::~TFileDroplet | ( | ) |
The destructor for this class.
Clean up the new'd filename
Definition at line 60 of file wsyscls.cpp.
|
inline |
|
inline |
|
inline |
|
inline |