home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!psinntp!isc-newsserver!cms2839
- From: cms2839@ultb.isc.rit.edu (a.stranger)
- Subject: Re: MDI Child window re-sizing Question
- Message-ID: <1992Jul28.230306.15005@ultb.isc.rit.edu>
- Originator: cms2839@ultb
- Keywords: MDI
- Sender: news@ultb.isc.rit.edu (USENET News System)
- Nntp-Posting-Host: ultb-gw.isc.rit.edu
- Organization: Minimalist Music for Hyperactive Children (MMHC)
- References: <1992Jul28.130842.14585@dragon.acadiau.ca>
- Date: Tue, 28 Jul 1992 23:03:06 GMT
- Lines: 32
-
- In article <1992Jul28.130842.14585@dragon.acadiau.ca> 890025d@dragon.acadiau.ca (Andy DeWolfe) writes:
- >Hi all,
- > Can anyone tell me how I can limit the size of
- >an MDI child window when the user grabs one of it's borders?
- >The problen is the window has to can the same width/height ratio
- >at all times.
-
- the " preferred " way of doing this is
- to respond to the wm_GetMinMaxInfo message , which allows you to set a
- minimum and maximum size for a window . i don't know of any way of
- controlling aspect ratio , though , except " tweaking " the size after
- the user has adjusted it .
-
- using wm_GetMinMaxInfo seems to induce
- some strange behaviour when used on an MDI child , though . i am having
- a problem with maximizing an MDI child whose size has been limited with
- this message . depending ( i think ) on the maximum size of the child as
- compared to the size of the MDI client window , i will sometimes end up
- with two system menus and restore boxes -- one on the MDI frame's menu
- line , where it should be , and one on a title bar on the MDI child ,
- which shouldn't be there at all ( in its maximized state ) . this seems
- to happen when the MDI client window is around the same size or smaller
- than the maximum size of the child window . when it's larger ,
- everything seems to work fine ...
-
- anyone know what's going on here ?
-
- --
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @ "Imagination keeps the shadows away - Xymox @
- @~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@
- @ a.stranger - CMS2839@ritvax.isc.rit.edu @
-