Browse Source

no message

Hongtae Kim 7 years ago
parent
commit
c65ecc08f4
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      TestApp1/TestApp1.cpp

+ 7
- 5
TestApp1/TestApp1.cpp View File

@@ -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