如何使子对话框窗口可固定或可移动 [英] How To make a child dialog window Dockable or Movable

查看:111
本文介绍了如何使子对话框窗口可固定或可移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI

我的应用程序中有一个父窗口和一个子窗口对话框.子窗口固定在一个地方,它不动,我想使其移动.有人可以帮我吗?


提前致谢

HI

I have one parent window and one child window dialogs in my application. the child window is fixed in one place and it''s not moving, i want to make it movable. can any one help me?


Thanks In advance

推荐答案

除非您使用的是Visual Studio 2008或2010,否则这并不是一件特别容易的任务.

如果您使用的是Visual Studio 2008,请获取 ^ ].正是对此提供了内在的支持.我认为Visual Studio 2010默认具有此支持,但我不能肯定地说.
为了使任何人都能编译您的解决方案,如果您打算共享代码,他们还需要功能部件包.

如果您使用的是Visual Studio的另一个版本,则在The Code Project上有很多文章. 标签控件和拆分器-添加一些可停靠的浮动糖 [
This is not a particularly easy task unless you are using Visual Studio 2008 or 2010.

If you are using Visual Studio 2008, get a copy of the Feature Pack[^]. That has inbuilt support for exactly this. I think Visual Studio 2010 has this support by default, but I can''t say for sure.
In order for anyone to be able to compile your solution they will also need the feature pack, if you are planning on sharing the code.

If you are using another version of Visual Studio, then there are plenty of articles here on The Code Project. Tab Controls And Splitters - Adding Some Dockable And Floating Sugar[^] for example.

As far as I know, they all require the Doc/View architecture of MFC to work. The ones that are from Microsoft do.




要使对话框窗口可移动,请单击对话框属性,其中有一个称为样式的属性,使该样式重叠.现在您可以移动对话框了.
Hi

To make a dialog window movable, click on the dialog propeties there is a propety called style, make that style as overlapped. Now you can move your dialog.


这篇关于如何使子对话框窗口可固定或可移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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