Click to See Complete Forum and Search --> : CFormView - Untiteld
Normen Müller
May 18th, 1999, 01:45 PM
Hi!
I created a SDI app and now I want to get rid of the "Untitled" in the caption bar, because this app
will not open any files.
So, please help me what I have to do...
Bye
Normen
--
apartis AG http://www.apartis.de
Normen Mueller
find you initinstance and before you show the window do a SetWindowText("whatever you want on the title bar"
Normen Müller
May 19th, 1999, 06:08 AM
It works.....
Thanx
Normen
--
apartis AG http://www.apartis.de
Normen Mueller
Jason Teagle
May 19th, 1999, 07:21 AM
There is nothing wrong with the above solution, but if you want to conform to the MFC doc/view architecture as much as possible, what you should do instead is go to your main frame's PreCreateWindow() override and add this line at the start of the routine:
cs.style &= ~FWS_ADDTOTITLE ;
This is the preferred method for not displaying the loaded document name.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.