June 13th, 1999, 11:00 PM
How to remove the "Untitled" from a SDI menu bar. Please provide sample of code if you know. Thank you
jana
jana
|
Click to See Complete Forum and Search --> : Remove "Untitled" from SDI menu bar June 13th, 1999, 11:00 PM How to remove the "Untitled" from a SDI menu bar. Please provide sample of code if you know. Thank you jana Walter I An June 13th, 1999, 11:07 PM Try to override precreatewindow() func like following BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { cs.style &= ~FWS_ADDTOTITLE; return CFrameWnd::PreCreateWindow(cs); } Hope for help. :) Walter balak yap June 13th, 1999, 11:32 PM 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!!! codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |