Advertisement

Changing textcaptions of Dialog windows

Started by November 22, 2002 01:38 PM
1 comment, last by trondb 21 years, 11 months ago
I have created a standard Dialog application in Visual Studio, and all I want to know is how to output text on it? Can I for example change the caption of a static text? "That''s Tron. He fights for the users."
"That's Tron. He fights for the users."
did you use MFC? if so, I can''t help you, but i can say this:

Most games don''t use MFC. Learn the API.

You could do a search of your file for the window''s text and then replace it with whatever you want it to be...
Programmers of the world, UNTIE!
Advertisement
First give it a unique ID (not IDC_STATIC). Then add a member variable of type CString. Then you can modify the string and call UpdateData(FALSE) to display the new text.

This topic is closed to new replies.

Advertisement