home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!jjacob
- From: jjacob@nyx.cs.du.edu (Jude Jacob)
- Subject: Re: ToolBar feature
- Message-ID: <1992Aug18.004116.8137@mnemosyne.cs.du.edu>
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Reply-To: jjacob@nyx.UUCP (Jude Jacob)
- Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
- References: <1992Aug17.153314.29588@infolog.se>
- Date: Tue, 18 Aug 92 00:41:16 GMT
- Lines: 32
-
- In article mats@infolog.se (Mats Lordin) writes:
- >I want to include a ToolBar in my application. I have received example
- >source code from Microsoft on how to do this. The problem is that I don't
- >understand how the ToolBar, which is an child window, excludes the
- >possibility of moveing other childwindows completely under the window. I.e
- >the same way you are unable of completely hiding any childwindow under the
- >apps menu bar. Could anyone tell me how the client area of the main window
- >is reduced in size or however it's done so that you can't hide other
- >childwindows under my own ToolBar.
-
- If the toolbar is a sibling of the of the other child windows, there might
- not be a super easy way to prevent the child windows overlapping the
- toolbar window.
-
- However, you will notice that most applications that use toolbar's are
- generally MDI applications. In case of MDI applications, the toolbar
- is a child of the frame window and is a sibling of the client window.
- The MDI child windows are children of the client window. So the question
- of child windows overlapping the toolbar does not arise if the toolbar
- does not overlap the client window.
-
- You can ensure that the client window and the toolbar window do not
- overlap by moving the windows yourself. The MDI child windows will never
- extend out of the client window because the they are children of the
- client window.
-
- So, in case of MDI, the problem almost takes care of itself. In case what
- you are writing is a non-MDI application, things will get a lot more
- involved. Let me know if this is a non-MDI applcation and we can look
- at possible solutions then.
-
- Jude
-