Titelleiste
-
Hallo,
die Titelleiste sieht ungefähr so aus.
bla bla bla - [New Import Definiton*]
Mit OnUpdateFrameTitle() kann "bla bla bla" manipulieren.
Jetzt ist so, dass Windows, je nachdem was aktiv ist
[New Import Definiton*]
anfügt.
Dieses automatische Anfügen möchte ich gern verhindern und die volle Kontrolle über die Titelleiste haben. Nur weiss ich nicht an welcher Stelle dies im Programm geschiet.
Ich habe in der MSDN geforscht und weiss nicht ob's die richtige Stelle ist:
FWS_ADDTOTITLE Specifies information to append to the end of a frame window title. For example, "Microsoft Draw - Drawing in Document1". You can specify the strings displayed in the Document Template Strings tab in the Application Wizard. If you need to turn this option off, override the CWnd::PreCreateWindow member function.
Bin für jeden Tipp dankbar,
Merci
-
aus der MSDN:
Remarks
Called by the framework during in-place activation to update the frame window's title bar. The default implementation does not change the frame window title. Override this function if you want a different frame title for your application, for example "server app - item in docname" (as in, "Microsoft Excel - spreadsheet in REPORT.DOC"). This is an advanced overridable.