OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TFileDroplet Class Reference

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.
 

Detailed Description

TFileDroplet encapsulates information about a single dropped file, its name, where it was dropped, and whether or not it was in the client area.

Definition at line 290 of file wsyscls.h.

Constructor & Destructor Documentation

◆ TFileDroplet() [1/2]

owl::TFileDroplet::TFileDroplet ( const tstring & fileName,
const TPoint & p,
bool inClient )

Supports drag and drop.

Definition at line 24 of file wsyscls.cpp.

◆ TFileDroplet() [2/2]

owl::TFileDroplet::TFileDroplet ( TDropInfo & drop,
int i )

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.

◆ ~TFileDroplet()

owl::TFileDroplet::~TFileDroplet ( )

The destructor for this class.

Clean up the new'd filename

Definition at line 60 of file wsyscls.cpp.

Member Function Documentation

◆ GetInClientArea()

bool owl::TFileDroplet::GetInClientArea ( ) const
inline

Returns true if the drop occurred in the client area.

Definition at line 308 of file wsyscls.h.

◆ GetName()

LPCTSTR owl::TFileDroplet::GetName ( ) const
inline

Returns the name of the file dropped.

Definition at line 302 of file wsyscls.h.

◆ GetPoint()

TPoint owl::TFileDroplet::GetPoint ( ) const
inline

Returns the cursor position at which the file was dropped.

Definition at line 305 of file wsyscls.h.

◆ operator==()

bool owl::TFileDroplet::operator== ( const TFileDroplet & other) const
inline

Returns true if the address of this object is equal to the address of the compared object.

Definition at line 299 of file wsyscls.h.


The documentation for this class was generated from the following files: