Re: MDI: don't display caption of child window in parent's caption

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Drew Myers (drew.nospam.myers_at_esrd.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 15:09:00 -0500

Does GetDocument()->SetTitle(" ") work?

Drew

"Manuel Wülser" <manuel.wuelser@gmx.ch> wrote in message
news:OX$VF$$uEHA.1524@TK2MSFTNGP09.phx.gbl...
> hi!
> thanks for your answer. i already tried to disable FWS_ADDTOTITLE.
> so i don't get the title extension when de childframe is loaded.
> but when i maximize the child frame the parent window still displays
> the title of the child!! you can set the child window title to anything
> with SetWindowText(..), it will be displayed in the main frame ....
> the code was generated by the wizard of ms visual studio..
>
>
> RainMan wrote:
> > On the other hand: default implementation does not use any brackets. If
you
> > are using code that customize title display, you may also need to alter
> > custom changes.
> >
> > "RainMan" wrote:
> >
> >
> >>It is not a child frame title but default document title.
> >>
> >>You ca remove it by altering PreCreateWindow of the main frame window.
> >>Insert cs.style &= ~FWS_ADDTOTITLE;
> >>
> >>
> >>"Manuel Wülser" wrote:
> >>
> >>
> >>>hello!
> >>>
> >>>by default, the MDI parent frame shows the name of the child frame
> >>>between brackets, like "ThisApp 1.0 [Sheet 1]".
> >>>I found this to be annoying in certain situations -> how can
> >>>I turn that off?
> >>>
> >>>



Relevant Pages

  • Re: MFC and c++ problems
    ... thread was concerned with a child window that wants to send messages to ... it requires the parent to implement some functionality. ... if the parent window is ... that implies some pretty tight coupling, and the child might as well call ...
    (microsoft.public.vc.mfc)
  • Re: How to "reload" a child window?
    ... javascript variable for the child ... "parent window" if you cause navigation there, ... source code is JIT-compiled, ... script, not call a script in this case. ...
    (comp.lang.javascript)
  • Re: True Modal Dialog
    ... If you set the FormBorderStyle fo the Dialog Form to FixedDialog for ... > When I take the steps to have my parent window hide while the child is ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: only executes in child window
    ... Consider the following child data: ... The user updates the root data and sometimes need to create a new ... The alternative would be to "refresh" the parent window after the child ... with a link in case the user needs to ...
    (comp.lang.javascript)
  • True Modal Dialog
    ... Is there a sure-fire ... When I take the steps to have my parent window hide while the child is ... ControlButtonsForm cBForm = new ControlButtonsForm; ...
    (microsoft.public.dotnet.framework.compactframework)