|
-
May 18th, 1999, 01:45 PM
#1
CFormView - Untiteld
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
-
May 18th, 1999, 01:57 PM
#2
Re: CFormView - Untiteld
find you initinstance and before you show the window do a SetWindowText("whatever you want on the title bar"
-
May 19th, 1999, 06:08 AM
#3
Re: CFormView - Untiteld
It works.....
Thanx
Normen
--
apartis AG http://www.apartis.de
Normen Mueller
-
May 19th, 1999, 07:21 AM
#4
Re: CFormView - Untiteld
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|