瀏覽代碼

no message

Hongtae Kim 8 年之前
父節點
當前提交
c65ecc08f4
共有 1 個文件被更改,包括 7 次插入5 次删除
  1. 7
    5
      TestApp1/TestApp1.cpp

+ 7
- 5
TestApp1/TestApp1.cpp 查看文件

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