
Changing Mainframe's title dynamically
Another way is to override OnUpdateFrameTitle of your mainframe. In it you
should be able to call SetWindowText().
--
Ajay Kalra [MVP - VC++]
Quote:
> Dave,
> Thank you for your answer but is it possible to do another
> way (without eliminating FWS_ADDTOTITLE style)?
> -HS
> >-----Original Message-----
> >>How can I set Mainframe's title dynamically?
> >Eliminate the FWS_ADDTOTITLE style from the frame window
> in the
> >window's PreCreateWindow handler.
> >Have a look at Knowledge Base article 99182 "HOWTO:
> Change an
> >MFC-Based MDI Child Window's Frame Text" for an example.
> >Dave
> >--
> >MVP VC++ FAQ: http://www.mvps.org/vcfaq
> >.