• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

How can I get a handle to the window for a document in MFC 6 MDI

I need to re-name the title of a window for one of the documents in a MDI project.  I have the handle for the document - how do I get the handle for the window for that document so I can change it's title?

1 Solution
Hi ied168i,

there's no need to find the document's window(s) - you can use CDocument::SetTitle to change the title shown in the window's caption.

Hope that helps,

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now