home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4482 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  1.7 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!ames!saimiri.primate.wisc.edu!crdgw1!rpi!batcomputer!cornell!uw-beaver!cs.ubc.ca!alberta!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cuugnet!terbergd
  2. From: terbergd@cuug.ab.ca (Denis Terberg 283-8245)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Borland C++ OWL; want hybrid of MDI child and Dialog box
  5. Message-ID: <1992Dec26.213715.6956@cuug.ab.ca>
  6. Date: 26 Dec 92 21:37:15 GMT
  7. Sender: news@cuug.ab.ca (Network News Reader)
  8. Distribution: comp.os.ms-windows.programmer.misc
  9. Organization: Calgary UNIX User's Group
  10. Lines: 34
  11. Nntp-Posting-Host: sun.cuug.ab.ca
  12.  
  13. I want to create an MDI child window with some (but not all)
  14. of the properties of a Dialog Box.
  15.  
  16. The desired features are:
  17. * create from a resource
  18.   (ie: use CreateDialog() )
  19. * events pre-processed by a Dialog Box Procedure,
  20.   instead of a window procedure
  21.   (ie: use DefDlgProc)
  22. * can be tiled/minimized/etc inside MDI Frame
  23.   (ie: make it a child of the MDI Frame)
  24.  
  25. However, I do NOT want the window to have any of the following
  26. properties:
  27. * modal
  28.   (ie: set TDialog::IsModal = FALSE)
  29. * can be dragged out of MDI Frame window
  30.   (how do you prevent this??)
  31. * remains in front of all other windows
  32.   (how do you prevent this??)
  33.  
  34. The best I've been able to do is make an MDI Child window which
  35. creates a dialog window in it's client area.  This looks exactly
  36. like what I want, and has all the desired functionality, but
  37. I can't help thinking that the same should be possible with only
  38. one window, instead of two.
  39.  
  40. Any suggestions?
  41.  
  42. -- 
  43. **************************************************
  44. * Denis W. Ter Berg  (403) 243-5459              *
  45. * terbergd@cuug.ab.ca                            *
  46. **************************************************
  47.