Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 8-Jan-16 15:18pm
v3
Comments
Richard MacCutchan 9-Jan-16 5:23am    
You can set the caption in the project resource file.

1 solution

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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900