使标题图标成为类似于资源管理器窗口的拖动源 [英] Make caption icon become drag source like explorer window

查看:74
本文介绍了使标题图标成为类似于资源管理器窗口的拖动源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个用纯WinAPI编写的编辑器.一些用户希望标题图标成为在编辑器中打开的文件的拖动源,就像资源管理器窗口一样.我不知道要实现这样的功能.有人可以给我例子吗?

I made an editor which written in pure WinAPI. Some users want the caption icon become a drag source of the file that opened in editor, like what the explorer window does. I have no idea to implement such feature. Can someone give me example please?

推荐答案

您将不得不听拖放 [
You will have to listen to mouse events in the non-client area[^] of your window, and then implement the "drag" part of Drag and Drop[^].


这篇关于使标题图标成为类似于资源管理器窗口的拖动源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆