|
-
April 9th, 1999, 12:40 AM
#1
How to change the title of SDI project
Please tell me how can we change the title of an SDI project which is by default 'untitled..'
-
April 9th, 1999, 04:10 AM
#2
Re: How to change the title of SDI project
Just redefine the PreCreateWindow function of the CMainFrame class like this:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style = WS_OVERLAPPEDWINDOW;
cs.lpszName = "My ****ing Title";
return CFrameWnd::PreCreateWindow(cs);
}
-
April 9th, 1999, 09:52 AM
#3
Re: How to change the title of SDI project
If all you want to do is get rid of that ugly "Untitled - " part, and leave the name of your app behind, do this:
// Comment out FWS_ADDTOTITLE to get rid of "Untitled - MyApp" on the title bar.
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~ FWS_ADDTOTITLE;
return CFrameWnd::PreCreateWindow(cs);
}
LA Leonard - Definitive Solutions, Inc.
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
|