Wird MDI_CHILD automatisch seinen Titel in Window Menu eintragen?
-
Hallo!
Ich habe das gelesen:
http://msdn2.microsoft.com/en-us/library/ms644913(VS.85).aspxUnd dort steht das:
The system adds the title of the new child window to the window menu of the frame window. An application should use this message to create all child windows of the client window.
Kann das jemand bestätigen? Muss also ein solches Menu namens Window vorhanden sein? Wird der Titel wirklich automatisch dort hinzugefügt? Wenn ja, wäre es super!
-
Ja das ist so:
Siehe WM_MDISETMENU
http://msdn2.microsoft.com/en-us/library/ms644921(VS.85).aspx
-
Hmm. Automatisch geht es nicht. Ich soll irgendwie ein neues Menu setzen durch SendMessage. Kannst du mir ein einfaches Beispiel zeigen wie ich das tue?
-
Nein! Es geht IMHO nicht automatisch.
Siehe Petzold.
Im Netz schwirren auch die MDI Samples von hm herum.