如何在VC ++ Windows应用程序中添加面板 [英] how to add panel in VC++ windows application

查看:98
本文介绍了如何在VC ++ Windows应用程序中添加面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生您好,
我有一个疑问.我是VC ++的新手.在VC ++ Windows应用程序中可以像在c#中那样添加面板吗?如果能够添加,请给我一个示例程序?

Hello sir,
I have one doubt.I am new to the VC++.In VC++ windows application can able to add panels like in c#?If able to add mean give me one sample program?

推荐答案

您可以执行此操作,但需要进行大量工作.一种可能是使用拆分窗口,您可以根据拆分窗口的内容动态调整其大小,或者使用MDI应用程序,对其进行类似的处理.最重要的是,在.NET表单中,此类内容是框架的一部分,并且大部分工作都由您完成,在Win32/MFC中,没有这么大的框架,您必须自己做更多的编码.
You could do it but it takes quite a lot of work. One possibility would be to use splitter windows which you dynamically resize according to their content, or an MDI application which you treat similarly. The bottom line is that in .NET forms, such things are part of the framework and most of the work is done for you, in Win32/MFC there is not such a large framework and you have to do a lot more coding for yourself.


这篇关于如何在VC ++ Windows应用程序中添加面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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