在vc ++中拖动对话框 [英] dragging of dialog in vc++

查看:77
本文介绍了在vc ++中拖动对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我使用的是vc8.0,创建对话框后,应该可以将其拖动以便可以放大或缩小.

Hello

I am using vc8.0 and after I create a dialog box I should be able to drag it such that it can be enlarged or shrunk.

推荐答案

您只需要更改对话框属性.

将边框"设置为调整大小".

做完了.

另一个问题是将所有控件与对话框本身的大小相应地放置...然后您将需要捕获WM_SIZE事件并对之做出反应.

这对您有帮助.
You need only to change the dialog properties.

Set Border to RESIZING.

job done.

Another issue will be to place all the controls accordingly with the resize of the dialog itself... then you''ll need to capture the WM_SIZE event and react to it.

Hoe this helps.


这篇关于在vc ++中拖动对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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