TFileDroplet class

Back Up Next

TFileDroplet class

Header File
    <owl/wsyscls.h>

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.

Public Constructors

TFileDroplet::TFileDroplet
    Syntax 1
        TFileDroplet(const char* fileName, TPoint& p, bool inClient);
    Description
        Supports drag and drop.
    Syntax 2
        TFileDroplet(TDropInfo& drop, int i);
    Description
        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.

Destructor
~TFileDroplet();
    Description
    The destructor for this class.

Public Member Functions

GetInClientArea
    Syntax
        bool GetInClientArea() const;
    Description
        Returns true if the drop occurred in the client area.
GetName
    Syntax
        const char* GetName() const;
    Description
        Returns the name of the file dropped.
GetPoint
    Syntax
        TPoint GetPoint() const;
    Description
        Returns the cursor position at which the file was dropped.
operator ==
    Syntax
        operator ==(const TFileDroplet& other) const;
    Description
        Returns true if the address of this object is equal to the address of the compared object.

Revised: February 09, 2000.


Copyright © 1998-2001 Yura Bidus. All rights reserved.