I have an MFC document application where I want to remove the "Untitled - " from the caption.
It way my understanding that I need to remove the 'AddToTitle' property from the window style, and then I can set the title, and the'untitled' string would not be added.
I tried the following, but it does not work.
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
...
lpCreateStruct->cx &= ~FWS_ADDTOTITLE;
this->SetTitle(L"The New Title");
}
Anyone know how to remove 'Untitled' from the main window title?
Thanks,
-Matt