forked from crypto2011/IDR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UFileDropper.h
41 lines (34 loc) · 966 Bytes
/
UFileDropper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//---------------------------------------------------------------------------
#ifndef UFileDropperH
#define UFileDropperH
#include <classes.hpp>
//
//simple class that allow/disallow drag-drop support for window
//
class TDragDropHelper
{
public:
TDragDropHelper(const HWND);
~TDragDropHelper();
private:
const HWND wndHandle;
};
//
//simple class that accepts dropped files and stores names + droppoint
//
class TFileDropper : public TObject
{
public:
__fastcall TFileDropper(HDROP );
virtual __fastcall ~TFileDropper();
__property int FileCount = {read=GetFileCount};
__property String Files[int Index] = {read=GetFile};
__property TPoint DropPoint = {read=GetPoint};
private:
HDROP DropHandle;
String GetFile(int Index);
int GetFileCount();
TPoint GetPoint();
};
//---------------------------------------------------------------------------
#endif