-
September 7th, 2005, 01:31 AM
#1
about CDocument
hi,
I don't want that title of document is "Untitled",
I want set it to my name.
please tell me.
-
September 7th, 2005, 02:30 AM
#2
Re: about CDocument
How about CDocument::SetTitle()?
Extreme situations require extreme measures
-
September 7th, 2005, 03:56 AM
#3
Re: about CDocument
how can I use CDocument:SetTitle()?
please give me example about it.
thanks.
-
September 7th, 2005, 04:04 AM
#4
Re: about function CDocument
Contrary to common belief, Codeguru is not ment to be a mirror of MSDN or other forms of documentation. Your question would have been answered should you have made a search on Google or MSDN first. Read here
Last edited by PadexArt; September 7th, 2005 at 04:04 AM.
Reason: typo
Har Har
-
September 7th, 2005, 04:06 AM
#5
CDocTemplate
I have one instanse from CDocTemplate:
CDocTemplate* pTemplate
how can I set title of it to "My name"?
(not "Untitled" which is default.)
-
September 7th, 2005, 04:15 AM
#6
Re: CDocTemplate
Use the Google search for Untitled "q & a" msdn (or search MSDN for Untitled "q & a") and I am sure you'll find what you need.
-
September 7th, 2005, 04:17 AM
#7
Re: about CDocument
From the View:
Code:
GetDocument().SetTitle(_T("This is your title"));
From inside the document:
Code:
SetTitle(_T("This is your title"));
Extreme situations require extreme measures
-
September 7th, 2005, 04:22 AM
#8
Re: CDocTemplate
I cann't find,
please write one example.
I can use it.
-
September 7th, 2005, 04:26 AM
#9
Re: CDocTemplate
You have 3 posts on the same topic. And on 2 of them you have the required answer.
Har Har
-
September 7th, 2005, 04:37 AM
#10
Re: CDocTemplate
Originally Posted by sep1
I cann't find,
please write one example.
I can use it.
The examples have been already written.. Have you tried a GOOGLE search?
www.microsoft.com/msj/0198/c0198.aspx
You could also take a look at CFrameWnd::OnUpdateFrameTitle method and search for itc using in MSDN
-
September 7th, 2005, 05:12 AM
#11
-
September 7th, 2005, 05:20 AM
#12
Re: CDocTemplate
Sep1, I have noticed that you use to posts 2, 3 threads asking for the same question. Please stop doing that. Follow a thread until you get an answer. And please read the reply carefuly, because the answer, at least for this question, are already there,
-
September 7th, 2005, 07:00 AM
#13
Re: CDocTemplate
Originally Posted by sep1
I cann't find,
please write one example.
I can use it.
If you want to succeed in programming, you'll need to be a little more independent than this. If you need to post to a bulletin board every time you need to know how to use a function, you'll never get anywhere.
-
September 7th, 2005, 11:39 PM
#14
Re: CDocTemplate
sep1,
You do not have to use SetTitle.As alternative edit document string that has the same ID as one you pass when document template is registered in a string table.
For more information see "INFO: Format of the Document Template String" article Q129095 in MSDN. Make sure you read it carefuly.
There are only 10 types of people in the world:
Those who understand binary and those who do not.
-
September 8th, 2005, 12:26 AM
#15
Re: CDocTemplate
Best regards, Alex Dronov
Let the poster of the answers know when they helped you: Click "Rate this post!
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
|