如何编辑MFC项目中的OnInitDialog?重命名主要对话 [英] How do I edit the OnInitDialog in a MFC project? RENAME THE MAIN DIALOG

查看:80
本文介绍了如何编辑MFC项目中的OnInitDialog?重命名主要对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在使用mfc项目,我已经显示了对话框的树,并且我在必要时更改了标题功能,事情是主对话框,包含其他对话框,仍然具有原始对话框写错的名字,我想知道如何重命名。



1)我在对话框树中搜索过这个项目,但没有。



2)我在.spp文件中的.cpp文件中搜索了oninitdialog和setwindowtext

,但没有。



你知道它可能在哪里吗?



欢迎所有评论,问候。

Hi there, I was workig with an mfc project, I have displayed the dialog's tree and I have changed the caption feature when necessary, the thing is that the main dialog, the one that contains the others, is still having the original name that was wrongly written, I would like to know how to rename this.

1) I have searched for this item in the dialog tree, but nothing.

2) I have searched for the oninitdialog and setwindowtext in the .cpp file associated
at the .sln file but nothing.

Do you have any idea where it could be?

All comments are welcome, regards.

推荐答案

只需覆盖OnInitDialog,如下所示:



CDialog :: OnInitDialog [ ^ ]

和:< a href =http://stackoverflow.com/questions/961617/vs-2008-mfc-add-oninitdialog-how> ide - VS 2008,MFC:添加OnInitDialog - 如何? - 堆栈溢出 [ ^ ]



文档始终是一个好的起点。
Just override the OnInitDialog as here:

CDialog::OnInitDialog[^]
and:ide - VS 2008, MFC: add OnInitDialog - how? - Stack Overflow[^]

The documentation is always a good place to start.


这篇关于如何编辑MFC项目中的OnInitDialog?重命名主要对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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