如何在我现有的VS2005主机(对话框)上添加最小化和最大化框(在appln的右上角)..? [英] How to add minimize and maximize box(On top right corner of appln) on my existing VS2005 mainframe (Dialog Box)..?

查看:106
本文介绍了如何在我现有的VS2005主机(对话框)上添加最小化和最大化框(在appln的右上角)..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我用VS 2005开发了一个应用程序,在创建一个新项目时我忘了检查最小化和最大化框选项..,现在我的应用程序只有关闭框..,我想添加最小化和最大化框..,有人可以帮我这个....?



谢谢你.. ...

解决方案

您应该能够通过执行以下操作来启用最大化/最小化选项:

0.在您的解决方案中,转到资源视图(如果您看不到该窗口,则应该在菜单中的View-> Resource View下)。

1.从列表中选择主对话框资源(默认情况下,它位于名为Dialog的文件夹中,名称以IDD_ProjectName开头)。

2.双击打开主对话框资源。

3.打开后,选择主窗口并右键单击,选择属性。

4.在属性中,应该有两个选项供您查找在外观下。将最大化/最小化选项设置为true并重建。


您需要一个可调整大小的帧。



如果你有一个基于对话框的应用程序,那么你会遇到一个有问题的问题。使用可调整大小的框架创建一个新项目,并复制新项目中的代码文件和缺少的代码。这也将向您展示您的代码是多么专业。我在课堂上编写代码并考虑重用,所以这只花了我几个小时。



否则改变主窗口/框架的样式RC-编辑器。

Hi,

I have developed a appln using VS 2005 , While creating a new project I forgot to check Minimize and Maximize box options..,Now my appln is having only close box.., I want to add Minimize and Maximize box..,can anybody help me on this....?

Thank u .....

解决方案

You should be able to enable the maximize/minimize options by doing the following:
0. In your solution, go to the "Resource View" (if you can't see that window, it should be under View->Resource View in the menus).
1. Select your main dialog from the list of resources (by default it's in a folder called "Dialog" and will have a name that starts with IDD_ProjectName).
2. Open your main dialog resource by double clicking.
3. Once opened, select the main window and right click, select "properties".
4. In the properties, there should be the two options you're looking for under "Appearance". Set the maximize/minimize options to true and rebuild.


you need a resizable frame.

If you have a dialog based app, than you have an interesing problem. Create a new project with a resizable frame, and copy the code-files and missing code in the new project. This will also show you how professional your code is. I write my code in classes and think about "reuse" so this would take me only a few hours.

Else change the styles of your main window/frame in the rc-editor.


这篇关于如何在我现有的VS2005主机(对话框)上添加最小化和最大化框(在appln的右上角)..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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