home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4209 < prev    next >
Encoding:
Text File  |  1992-12-14  |  2.2 KB  |  59 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: OWL and MDI question 
  5. Distribution: world
  6. References: <HAGELIN.92Dec13171329@festis.elixir.e.kth.se>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 44
  11. Date: Mon, 14 Dec 1992 18:56:49 +0000
  12. Message-ID: <724359409snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <HAGELIN.92Dec13171329@festis.elixir.e.kth.se> hagelin@elixir.e.kth.se writes:
  16.  
  17. >
  18. >I have a problem in my first windows program. I'm trying to get an MDI
  19. >child window which has a fixed size and no maximize button (it's meant
  20. >to stay in just one size). But it wont look the way I like it...
  21. >
  22. >I can set the Attr.Style to anything, and the window looks the same
  23. >anyway. But if I set an Style like WS_ICONIC, it starts like an icon.
  24. >
  25. >The problem is that the window style I set in the constructor for the
  26. >child window somehow gets overridden by the MDIframe, and gets some
  27. >default window style.
  28. >
  29. >The question now is:
  30. >
  31. >- Can I make a window who is a MDIchild but not having the default(?)
  32. >  style? And how ?
  33. >
  34. >- If this doesn't work I guess I'll have to make the window a dialog
  35. >  instead, but does a dialog function like a MDIChild (with reference to
  36. >  tiling, cascading, etc.) ?
  37. >
  38. >
  39. >/Martin
  40. >
  41.  
  42. IF your program is for Windows 3.1, then the answer is yes, you can do it.
  43. What you have to do is create the MDI *Client* window with the
  44. MDI_SALLCHILDSTYLES style set.  Unless the MDI client has this style then,
  45. as you've found out, MDI child windows are created with a default style,
  46. and there's nothing you can do about it.
  47.  
  48. If you need to support Windows 3.0, you're out of luck!
  49.  
  50. Hope this helps.
  51. -- 
  52. --------------------------------------------------------------------------
  53. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  54. | Warrington, UK                           | BIX: cmarriott              |
  55. | (Still awaiting inspiration              | CIX: cmarriott              |
  56. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  57. --------------------------------------------------------------------------
  58.  
  59.