如何在VS_2005上创建多窗口应用程序? [英] How to create multi window appln on VS_2005 ?
问题描述
我在VS 2005上开发了一个基于对话框的应用程序。这里有一些按钮和编辑框,现在我要再创建两个应用程序了几乎与我之前的相同,只会添加一些按钮。现在问题是我希望有一个应用程序,它将有三个选项卡选项(每个选项卡上单独的appln)用于不同的应用程序配置。
我已经搜索谷歌这个多面板应用程序,但我没有足够的数据。
有没有人有任何好主意... .........?
谢谢你.........
您可以通过使用不同的资源模板来实现。复制对话框的资源并仅重命名对话框的名称。像IDD_DIALOG和IDD_DIALOG2。现在你可以修改这些东西了。
现在最重要的是考虑在代码中加载正确的资源。有时你只需要一个if()语句并在创建窗口之前分配资源IDD。
不要在rc文件中为所有新控件ID提供一个条目。
Hi,
I have developed a dialog based application on VS 2005. Which is having some buttons and edit box , Now I have to create two more application which is almost same like my previous one , only some buttons will add. Now the thing is I want to have a single application in which It will have three tab option ( separate appln on each tab )for different configurations of application.
I have searched google for this multi panel application, but I didn't got enough data.
Does anybody have any good Idea ............??
Thank u.........
You can realize that by using different resource templates. Copy the resource of a dialog and rename ONLY the name of the dialog. Like IDD_DIALOG and IDD_DIALOG2. Now you can modify the stuff.
The most important think this now to code the loading of the right resource in code. Sometimes you need only a if() statement and assign the resource IDD before creating the window.
Dont ferget to give all new control ID an entry in the rc file.
这篇关于如何在VS_2005上创建多窗口应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!