home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3389 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.5 KB

  1. Path: sparky!uunet!mcsun!sunic!isgate!krafla!karlth
  2. From: karlth@rhi.hi.is (Karl Thoroddsen)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: How to implement two listboxes a'la FileManager?
  5. Message-ID: <5603@krafla.rhi.hi.is>
  6. Date: 12 Nov 92 16:09:13 GMT
  7. References: <1992Nov12.122304.18701@cs.hut.fi>
  8. Sender: usenet@rhi.hi.is
  9. Lines: 25
  10. Nntp-Posting-Host: hengill.rhi.hi.is
  11.  
  12. In <1992Nov12.122304.18701@cs.hut.fi> s34090e@kaira.hut.fi (Petri Taavila) writes:
  13.  
  14. >The Win 3.1 FileManager has (as we all know) a multiple document
  15. >interface where each child contains a pane containing a directory tree
  16. >list and a filelist linked to the selected directory.  
  17.  
  18. >According to spy, each MDI child seems to be a custom class which has
  19. >the drive buttons and two listboxes as childs, and this class handles
  20. >the resizing of childs. It appears that win-api does not have any kind
  21. >of Pane control for positioning the child windows (like many X widget
  22. >sets have).
  23.  
  24. >Any ideas how this is implemented? Is it a custom control? Is there
  25. >source code implementing such beast somewhere (publicly available)?
  26.  
  27. When the MDI child recieves a notification of it being resized, it 
  28. simply changes the size of its child windows.
  29.  
  30. Look up: WM_SIZE and WM_MOVE.  For a complete example see Peter Norton's and
  31. Paul Yao's "Windows 3.0 Power programming techniques." page 412.
  32.  
  33. -- 
  34.  
  35. \ Internet: karlth@rhi.hi.is             \ Karl Thoroddsen University Of Iceland
  36.  \ Respect...            , Peter Ustinov  \ Department Of Computer Science
  37.