Click here to Skip to main content
15,914,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTransparentBlt Pin
David15-Sep-00 18:41
David15-Sep-00 18:41 
GeneralDialog resolution Pin
Roger15-Sep-00 7:40
Roger15-Sep-00 7:40 
GeneralRe: Dialog resolution Pin
Mustafa Demirhan16-Sep-00 0:00
Mustafa Demirhan16-Sep-00 0:00 
GeneralISAPI Pin
Ed K19-Sep-00 12:19
Ed K19-Sep-00 12:19 
GeneralRe: ISAPI Pin
Member 120896520-Sep-00 14:01
Member 120896520-Sep-00 14:01 
GeneralFailure to Register DropTarget only on HP Vectra and Win 2000 Pin
Member 1031214815-Sep-00 6:13
Member 1031214815-Sep-00 6:13 
General*** Changing Title of a Document Frame **** Pin
Steve Lai15-Sep-00 6:02
Steve Lai15-Sep-00 6:02 
GeneralRe: *** Changing Title of a Document Frame **** Pin
Member 120896515-Sep-00 6:36
Member 120896515-Sep-00 6:36 
Steve,

I'm not sure if you are asking how to change it to something else, or remove it. I'm assuming that you know that it says "Untitled" until the initial document is named while saving. This snippet below tells you how to remove the filename (or 'Untitled') from the Window title

I dug this up from an old copy of the MFC FAQ I had kicking around:

Override the PreCreateWindow() function in your MainFrame class and do the following in it..

cs.style &= ~FWS_ADDTOTITLE ;
You can also set the initial window position (cs.x, cs.y, cs.cx, cs.cy) this way and change your class (cs.lpszClass) this way! Remember to call CFrameWnd::PreCreateWindow at the end...



GeneralRe: *** Changing Title of a Document Frame **** Pin
Sam Hobbs15-Sep-00 10:41
Sam Hobbs15-Sep-00 10:41 
GeneralRe: *** Changing Title of a Document Frame **** Pin
Member 120896515-Sep-00 11:03
Member 120896515-Sep-00 11:03 
GeneralRe: *** Changing Title of a Document Frame **** Pin
Sam Hobbs15-Sep-00 10:48
Sam Hobbs15-Sep-00 10:48 
GeneralCD-ROM access Pin
Roger15-Sep-00 5:28
Roger15-Sep-00 5:28 
GeneralRe: CD-ROM access Pin
Paolo Messina16-Sep-00 23:08
professionalPaolo Messina16-Sep-00 23:08 
GeneralColors in visual c++ MFC Pin
Fredrik15-Sep-00 0:57
Fredrik15-Sep-00 0:57 
GeneralRe: Colors in visual c++ MFC Pin
Mustafa Demirhan15-Sep-00 4:52
Mustafa Demirhan15-Sep-00 4:52 
GeneralCustomized CFileDialog Pin
philippe dykmans15-Sep-00 0:10
philippe dykmans15-Sep-00 0:10 
GeneralPrint and Print Preview controls within a CView Pin
Cameron Stevens14-Sep-00 18:52
Cameron Stevens14-Sep-00 18:52 
GeneralDrag/Drop objects from one document to other documents in MDI App. Pin
Bermusa14-Sep-00 4:13
Bermusa14-Sep-00 4:13 
GeneralRe: Drag/Drop objects from one document to other documents in MDI App. Pin
Erik Funkenbusch19-Sep-00 13:14
Erik Funkenbusch19-Sep-00 13:14 
GeneralRe: Drag/Drop objects from one document to other documents in MDI App. Pin
Bermusa19-Sep-00 17:12
Bermusa19-Sep-00 17:12 
GeneralModeless dialog boxes Pin
nimrod14-Sep-00 1:26
nimrod14-Sep-00 1:26 
GeneralRe: Modeless dialog boxes Pin
Mustafa Demirhan14-Sep-00 10:01
Mustafa Demirhan14-Sep-00 10:01 
GeneralRe: Modeless dialog boxes Pin
Sam Hobbs14-Sep-00 10:59
Sam Hobbs14-Sep-00 10:59 
Generalgetting build number Pin
P e t e r13-Sep-00 22:30
P e t e r13-Sep-00 22:30 
GeneralRe: getting build number Pin
Paolo Messina16-Sep-00 23:22
professionalPaolo Messina16-Sep-00 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.