We help IT Professionals succeed at work.

Change the default Document name for CView/CDocument Application

GUNDAFLORIDA
GUNDAFLORIDA asked
on
How do I change the default Document name for CView/CDocument Application?

Comment
Watch Question

CERTIFIED EXPERT
Author of the Year 2009
Commented:
You could call CDocument::SetTitle

Or you can derive from CDocTemplate and override the virtual SetDefaultTitle member fn.

MFC load a resource named AFX_IDS_UNTITLED by default.

-- Dan

Author

Commented:
SetTitle did the trick.

Thanks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.