Re: changing the application name

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Koti wrote:

hi frank,

 your code is working very well
for SDI and MDI

But before that name, i there is a name "Untitled", i have to remove that.

Override the PreCreateWindow function like this to get rid of the MFC-generated standard window title:


BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
 cs.style &= ~FWS_ADDTOTITLE;
 return CFrameWnd::PreCreateWindow(cs);
}

--
Scott McPhillips [VC++ MVP]

.