Re: How to hide title bar of the MDI Child form?
From: Kurt Barthelmess (kbarthelmess_at_compuserve.com)
Date: 11/11/03
- Next message: Kurt Barthelmess: "Re: Windows messages gets lost"
- Previous message: Brian Cook: "Re: Windows messages gets lost"
- In reply to: Thomas Wang: "How to hide title bar of the MDI Child form?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 Nov 2003 11:04:00 GMT
"Thomas Wang" <thomas23@126.com> wrote:
>Subject: How to hide title bar of the MDI Child form?
The title or caption bar is part of the form, so hiding it woulld mean
hiding the entire window. That's not possible for MDI children but
it's also probably not what you want.
I think what you are asking is if it is possible to have an MDI child
without a caption area including the min/max/close buttons at the top
right and the system menu at the top left. You may be able to do this
in a couple of ways:
1) Creating the child with the appropriate changes to the Create
structure
2) Letting the window be created normally, but taking over the
painting of the non-client area.
The first solution is probably the least likely to work. The Windows
implementation of MDI makes certain assumptions about MDI children.
Trying to sneak past Microsoft's idea of how MDI should work can be
difficult. The second is probably the easiest to implement. Watch for
the various WM_NCxxxx messages that relate to mouse buttons, painting,
etc.
Remember that when an MDI child is maximized, it's caption bar is
merged with that of the parent. I don't know how you want to handle
that, if at all.
Also note that removing the caption bar means the user will have a
difficult time moving, sizing and closing the child. I would be very
careful about providing alternate means for these functions or your
customers will get very confused about what is going on. Actually,
they will be anyhow<g>.
Good luck.
Kurt
- Next message: Kurt Barthelmess: "Re: Windows messages gets lost"
- Previous message: Brian Cook: "Re: Windows messages gets lost"
- In reply to: Thomas Wang: "How to hide title bar of the MDI Child form?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|