|
-
April 21st, 1999, 05:37 PM
#1
Removing 'Untitled' text
I have an SDI application. I gave my application a title in the string table. But when the application comes up, it shows Untitled
<Application Name>.
How do I get rid of this Untitled
from the application's title bar?
-
April 21st, 1999, 09:06 PM
#2
Re: Removing 'Untitled' text
You need change the window style for the mainframe. Go to your MainFrame implementation codes, change the style in ::PreCreate() (I don't remember exactly which member function, should be obvious though). I did this once some time ago. I will check my codes and give exactly what needs to be done tommorrow.
-
April 22nd, 1999, 04:37 AM
#3
Re: Removing 'Untitled' text
Call SetTitle() on the docoument(CDocument) to change the Untitled string
-
April 22nd, 1999, 06:49 AM
#4
Re: Removing 'Untitled' text
PreCreateWindow(CreateStruct cs...
AddToTitle property
chrislaw
-
April 22nd, 1999, 07:48 AM
#5
Re: Removing 'Untitled' text
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
cs.style &= ~FWS_ADDTOTITLE;
return TRUE;
}
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
|