🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #1757

Re: OWL and MDI question

#1757
From: Chris Marriott
Date: Mon, 14 Dec 1992 18:56
44 lines
2319 bytes
In article <HAGELIN.92Dec13171329@festis.elixir.e.kth.se> hagelin@elixir.e.kth.se writes:

>
>I have a problem in my first windows program. I'm trying to get an MDI
>child window which has a fixed size and no maximize button (it's meant
>to stay in just one size). But it wont look the way I like it...
>
>I can set the Attr.Style to anything, and the window looks the same
>anyway. But if I set an Style like WS_ICONIC, it starts like an icon.
>
>The problem is that the window style I set in the constructor for the
>child window somehow gets overridden by the MDIframe, and gets some
>default window style.
>
>The question now is:
>
>- Can I make a window who is a MDIchild but not having the default(?)
>  style? And how ?
>
>- If this doesn't work I guess I'll have to make the window a dialog
>  instead, but does a dialog function like a MDIChild (with reference to
>  tiling, cascading, etc.) ?
>
>
>/Martin
>

IF your program is for Windows 3.1, then the answer is yes, you can do it.
What you have to do is create the MDI *Client* window with the
MDI_SALLCHILDSTYLES style set.  Unless the MDI client has this style then,
as you've found out, MDI child windows are created with a default style,
and there's nothing you can do about it.

If you need to support Windows 3.0, you're out of luck!

Hope this helps.
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Technical Details
Message-ID: <724359409snz@chrism.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
References: <HAGELIN.92Dec13171329@festis.elixir.e.kth.se>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
Subject: Re: OWL and MDI question 
Distribution: world
References: <HAGELIN.92Dec13171329@festis.elixir.e.kth.se>
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Lines: 44
Date: Mon, 14 Dec 1992 18:56:49 +0000
Message-ID: <724359409snz@chrism.demon.co.uk>
Sender: usenet@demon.co.uk