添加一个对话框 [英] add a dialog
问题描述
我正在使用VS 2015
并尝试使用基本对话框开发一个应用程序,从中我开始一个模态2.对话框。
所以我选择了在资源视图中INSERT DIALOG
显示新对话框。我为该对话框添加一个类,并获得一个没有OnInitDialog的cpp文件。在哪里把它放在
i am using VS 2015
and try to develop an application with a basic dialog from where i start a modal 2. dialog.
so i chose in the resource view INSERT DIALOG
the new dialog is shown. i add a class for that dialog and get a cpp-file with no OnInitDialog. where to put it in the
.h-file
请帮助
Manfred
推荐答案
右键单击编辑器中的对话框,然后从弹出的结果中选择"类向导"。
Right-click on the dialog in the editor, and from the resulting pop-up select Class Wizard.
在类向导中,转到虚拟功能选项卡,从左侧列表框中选择OnInitDialog,然后点击添加功能按钮。
In the Class Wizard, go to the Virtual Functions tab, select OnInitDialog from the list box on the left, then hit the Add Function Button.
这篇关于添加一个对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!