|
-
June 13th, 1999, 11:00 PM
#1
Remove "Untitled" from SDI menu bar
How to remove the "Untitled" from a SDI menu bar. Please provide sample of code if you know. Thank you
jana
-
June 13th, 1999, 11:07 PM
#2
Re: Remove "Untitled" from SDI menu bar
Try to override precreatewindow() func like following
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~FWS_ADDTOTITLE;
return CFrameWnd::PreCreateWindow(cs);
}
Hope for help. 
Walter
-
June 13th, 1999, 11:32 PM
#3
Re: Remove "Untitled" from SDI menu bar
Easy; just add a line in the your App InitInstance() function.
Example...
BOOL CYourSDIApp::InitInstance()
{
....
...
...
m_pMainWnd->UpdateWindow(); //Deafault, add my VC++
m_pMainWnd->SetWindowText(""); //Add this line to remove the SDI title
..
..
}
Hello World!!!
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
|