|
@@ -17,15 +17,17 @@ public:
|
17
|
17
|
DKLog("%s", DKGL_FUNCTION_NAME);
|
18
|
18
|
DKWindow::WindowCallback cb = {};
|
19
|
19
|
|
20
|
|
- cb.draggingFeedback = DKFunction([](DKWindow*, DKWindow::DraggingState state, const DKPoint&, const DKStringArray&) {
|
21
|
|
- DKLog("cb.draggingFeedback: state:%d", state);
|
22
|
|
- return DKWindow::DragOperationCopy;
|
|
20
|
+ cb.draggingFeedback = DKFunction([](DKWindow*, DKWindow::DraggingState state, const DKPoint& pos, const DKStringArray& files) {
|
|
21
|
+ DKLog("cb.draggingFeedback: pos:(%.0f, %.0f), state:%d", pos.x, pos.y, state);
|
|
22
|
+ if (files.Count() > 2)
|
|
23
|
+ return DKWindow::DragOperationCopy;
|
|
24
|
+ if (files.Count() > 1)
|
|
25
|
+ return DKWindow::DragOperationMove;
|
|
26
|
+ return DKWindow::DragOperationLink;
|
23
|
27
|
});
|
24
|
28
|
cb.closeRequest = DKFunction([](DKWindow* window)
|
25
|
29
|
{
|
26
|
30
|
DKLog("Close request?");
|
27
|
|
- if (DKIsDebuggerPresent())
|
28
|
|
- return false;
|
29
|
31
|
return true;
|
30
|
32
|
});
|
31
|
33
|
|