将控件移到父窗口(MFC)之外 [英] Moving control beyond parent window (MFC)

查看:172
本文介绍了将控件移到父窗口(MFC)之外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要将控件移出父窗体.这已经在许多程序中实现,例如,在VS Solution Explorer中可以在屏幕上拖动.换句话说,我需要找到一种方法来拖动屏幕任何部分的控件,但所有处理程序都应留在父级.
MFC中是否有解决此问题的方法.也许在这个话题上已经写了些东西.

感谢您的帮助.

Dmitry.

解决方案

以下是CodeProject文章,可能会对您有所帮助:
像Dock容器一样的Visual Studio IDE-第二版 [ ^ ]
这是第二个库-也允许将窗口移出主要窗体:
http://www.datamekanix.com/ [ ^ ]
我们实际上是在使用Codejock Xtreme工具包(没有免费软件)来在工作中实现这一点-效果很好.看到这里:
http://www.codejock.com/products/toolkitpro/?platform=mfc [ ^ ]


There is a need to move control out of the parent form. This is already implemented in many programs, for example, in the VS Solution Explorer can be dragged across the screen. In other words, I need to find a way to drag the control of any part of the screen, but all handlers should stay at parent.
Is there a way in MFC to solve this problem. Perhaps something has been written on this topic.

Grateful for the help.

Dmitry.

解决方案

Here is an CodeProject article that might help you:
Visual Studio IDE like Dock Container - Second Version[^]
Here is a second library - that also allows moving windows outside the main form:
http://www.datamekanix.com/[^]
We are actually using the Codejock Xtreme Toolkit (no Freeware) to achieve that at work - working very well. See here:
http://www.codejock.com/products/toolkitpro/?platform=mfc[^]


这篇关于将控件移到父窗口(MFC)之外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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