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
Printable View
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"
It works.....
Thanx
Normen
--
apartis AG http://www.apartis.de
Normen Mueller
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.