home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5245 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: ToolBar under MDI application 
  5. Distribution: world
  6. References: <dtam.727607040@sfu.ca>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 28
  11. Date: Thu, 21 Jan 1993 19:12:23 +0000
  12. Message-ID: <727643543snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <dtam.727607040@sfu.ca> dtam@fraser.sfu.ca writes:
  16.  
  17. >I have a toolbar implemented in my MDI application. However, my child windows
  18. >will ovelap the toolbar. Can anyone tell me how to resize the MDI client
  19. >windows so that it will not ovelapped with the toolbar. The MDI frame window is
  20. >the parent of both the toolbar window and the MDI client window!!
  21. >e-mail or post to newsgroup is welcome!!
  22. >                                 
  23. >
  24.  
  25. The answer is to have the Toolbar window as a child of the FRAME window,
  26. not of the MDI client.  All you have to do then is process the WM_SIZE
  27. message in the frame window proc, and resize/move the MDI client window
  28. yourself, rather than passing WM_SIZE on to DefFrameProc, which resizes
  29. the MDI client to fill the client area of the frame window.
  30.  
  31. Best wishes,
  32.  
  33. Chris
  34. -- 
  35. --------------------------------------------------------------------------
  36. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  37. | Warrington, UK                           | BIX: cmarriott              |
  38. |                                          | CIX: cmarriott              |
  39. | Save the whales.  Collect the whole set. | CompuServe: 100113,1140     |
  40. --------------------------------------------------------------------------
  41.  
  42.