home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 1066 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.2 KB  |  47 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!psinntp!isc-newsserver!cms2839
  3. From: cms2839@ultb.isc.rit.edu (a.stranger)
  4. Subject: Re: MDI Child window re-sizing Question
  5. Message-ID: <1992Jul28.230306.15005@ultb.isc.rit.edu>
  6. Originator: cms2839@ultb
  7. Keywords: MDI 
  8. Sender: news@ultb.isc.rit.edu (USENET News System)
  9. Nntp-Posting-Host: ultb-gw.isc.rit.edu
  10. Organization: Minimalist Music for Hyperactive Children (MMHC)
  11. References: <1992Jul28.130842.14585@dragon.acadiau.ca>
  12. Date: Tue, 28 Jul 1992 23:03:06 GMT
  13. Lines: 32
  14.  
  15. In article <1992Jul28.130842.14585@dragon.acadiau.ca> 890025d@dragon.acadiau.ca (Andy DeWolfe) writes:
  16. >Hi all,
  17. >    Can anyone tell me how I can limit the size of
  18. >an MDI child window when the user grabs one of it's borders?
  19. >The problen is the window has to can the same width/height ratio
  20. >at all times.  
  21.  
  22.                 the " preferred " way of doing this is
  23. to respond to the wm_GetMinMaxInfo message , which allows you to set a
  24. minimum and maximum size for a window . i don't know of any way of
  25. controlling aspect ratio , though , except " tweaking " the size after
  26. the user has adjusted it .
  27.  
  28.                                 using wm_GetMinMaxInfo seems to induce
  29. some strange behaviour when used on an MDI child , though . i am having
  30. a problem with maximizing an MDI child whose size has been limited with
  31. this message . depending ( i think ) on the maximum size of the child as
  32. compared to the size of the MDI client window , i will sometimes end up
  33. with two system menus and restore boxes -- one on the MDI frame's menu
  34. line , where it should be , and one on a title bar on the MDI child ,
  35. which shouldn't be there at all ( in its maximized state ) . this seems
  36. to happen when the MDI client window is around the same size or smaller
  37. than the maximum size of the child window . when it's larger ,
  38. everything seems to work fine ...
  39.  
  40.                                 anyone know what's going on here ?
  41.  
  42. -- 
  43.        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  44.        @     "Imagination keeps the shadows away  -  Xymox      @
  45.        @~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@
  46.        @       a.stranger  -  CMS2839@ritvax.isc.rit.edu        @
  47.