home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4197 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.6 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!enterpoop.mit.edu!eru.mt.luth.se!kth.se!news.kth.se!hagelin
  2. From: hagelin@elixir.e.kth.se (Martin Hagelin)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: OWL and MDI question
  5. Message-ID: <HAGELIN.92Dec13171329@festis.elixir.e.kth.se>
  6. Date: 13 Dec 92 16:13:29 GMT
  7. Sender: usenet@kth.se (Usenet)
  8. Distribution: comp
  9. Organization: School of EE, Royal Institute of Technology, Sweden
  10. Lines: 47
  11. Nntp-Posting-Host: festis.e.kth.se
  12.  
  13.  
  14. Hello everybody !
  15.  
  16. I have a problem in my first windows program. I'm trying to get an MDI
  17. child window which has a fixed size and no maximize button (it's meant
  18. to stay in just one size). But it wont look the way I like it...
  19.  
  20.  
  21. The code look's like this:
  22.  
  23. In my MDIFrame I construct the child window like this
  24.  
  25.   GetModule->MakeWindow( new TMySpecialWindow(this, "Title"));
  26.  
  27. and in the constructor for TMySpecialWindow it looks like this:
  28.  
  29.   TMySpecialWindow::TMySpecialWindow(.bla.) : TWindow (.bla.)
  30.   { 
  31.     Attr.Style &= ~(WS_MAXIMIZEBOX);
  32.     ...
  33.   }
  34.  
  35. I can set the Attr.Style to anything, and the window looks the same
  36. anyway. But if I set an Style like WS_ICONIC, it starts like an icon.
  37.  
  38. The problem is that the window style I set in the constructor for the
  39. child window somehow gets overridden by the MDIframe, and gets some
  40. default window style.
  41.  
  42.  
  43. The question now is:
  44.  
  45. - Can I make a window who is a MDIchild but not having the default(?)
  46.   style? And how ?
  47.  
  48. - If this doesn't work I guess I'll have to make the window a dialog
  49.   instead, but does a dialog function like a MDIChild (with reference to
  50.   tiling, cascading, etc.) ?
  51.  
  52.  
  53. /Martin
  54.  
  55.  
  56. --
  57. --------
  58. Martin Hagelin
  59. hagelin@elixir.e.kth.se
  60.