
Application Title - how do I change it dynamically
Quote:
> I have an app which runs in either MDI or SDI depending on a level
setting - I
> want to display the level in the application's title bar along with the
other
> information i.e.
> For MDI, instead of "<appname> - [<document name>]" I want it to say
> "<appname> - Level <level> - [<document name>]" where <level> is defined
at
> runtime...
> Cheers for any help
> Ant
You can override the semi-documented OnUpdateFrameTitle() in CMainFrame
call the Base class OnUpdateFrameTitle() first, get what it "suggests" with
GetWindowText(), and sneak your level in with SetWindowText().
cU
--
http://djuga.home.ml.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retriever 1.0 is out: http://retriever.home.ml.org
Shareware image viewer, thumbnailer & database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~