文件的拖放是如何完成的?

2022-01-11 00:00:00 windows drag-and-drop c++

在winamp或vlc播放器中,如何进行文件拖放?我的意思是我想知道什么样的编码进入应用程序?我想知道c++

as in winamp or vlc player, how to do a file drag and drop? i mean i want to know what sort of coding goes into application? i want to know for c++

推荐答案

在 Windows 上的纯 C/C++ 中,开始阅读 DragAcceptFiles 函数和 WM_DROPFILES 消息.如果您使用的是更强大的 C++ 库(Qt、Wx 等),请查看它们各自的文档.更具体地说,了解您使用什么会有所帮助.

In pure C/C++ on Windows, start reading about the DragAcceptFiles function and the WM_DROPFILES message. If you're using a more powerful C++ library (Qt, Wx, etc) check their respective documentation. It would help to know what you use, more specifically.

另外,本次讨论可能会回答您的问题.如果这是您的意思,请关闭此问题.

Also, this discussion may answer your question. If it's what you meant, please close this question.

相关文章