|
-
April 10th, 1999, 07:54 AM
#1
how can I change my main window's title
I have vc++6.0 and I created a SDI program called TextEdit. How can I change the title of the program shown in the blue title bar region of this SDI program?
Any response anyone can give me will be greatly appreciated.
-
April 10th, 1999, 11:02 AM
#2
Re: how can I change my main window's title
Just add this code to your PreCreateWindow function:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) {
cs.style =~ FWS_ADDTOTITLE;
cs.name = "My title";
}
-
April 15th, 1999, 01:25 AM
#3
Re: how can I change my main window's title
If the title will always be the same, you can edit the string resource used to display the title. Click on the
"Resource" tab in theVC++ Workspace view. Expand the list of resource types, if necesary, then open the
string table (double-click it). Somewhere near the top (usually) you will find the title string. Click to edit the string,
then save your changes and re-compile.
-
April 15th, 1999, 01:49 AM
#4
Re: how can I change my main window's title
I think you missed an &
cs.style &= ~(LONG)FWS_ADDTOTITLE;
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
|