home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1370 < prev    next >
Encoding:
Text File  |  1992-08-17  |  2.1 KB  |  45 lines

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