Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! How can I change...

Status
Not open for further replies.

bnhshallow

Programmer
Dec 14, 2001
12
US
Hey Everyone.
What I am trying to do is Get the title bar of the dialog box to change text. What I am looking for in a response is:

CTitleClass m_TitleVar;
m_TitleVar.SetWindowText("New Title.");

I have looked at post by other people on the same subject, but all the responses say is "Try SetWindowText." or those two letter awnsers. Please if you can give me something like the syntax above. THX BNHShallow.
 
What your doing there seems to be the right approach. When you design a dialog in VC++ you create a class to go with it. In OnInitDialog just type

this->SetWIndowText("HI THERE");

That should do it. If this is not what you meant please repost

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top