Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

the_grip

MFC Title Bar changing

This topic is 6254 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there any way to change the title bar of an MDI Child window on the fly in MFC? Thanks! "You call him Dr. Grip, doll!"

Share this post


Link to post
Share on other sites
Advertisement
That''s what i would have thought, but it doesn''t do the trick.

i''m using the CHTMLView class... maybe there''s a quirk with it?

"You call him Dr. Grip, doll!"

Share this post


Link to post
Share on other sites
Hmm... seems it doesn''t work on my other windows as well.

i have a basic CFormView as a child window, and the SetWindowText() function doesn''t set the actual title bar text...

Any more suggestions?

"You call him Dr. Grip, doll!"

Share this post


Link to post
Share on other sites
Still no luck... i know that child views get their names from the stringtable (i think).

Any more help is appreciated...

"You call him Dr. Grip, doll!"

Share this post


Link to post
Share on other sites
document.SetTitle()
is what you want.

If you don''t have your doc object handy, use:
GetDocument() from the view

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!