添加一个对话框 [英] add a dialog

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

问题描述

我正在使用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屋!

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