Article View: comp.os.ms-windows.programmer.misc
Article #1733OWL and MDI question
From: Martin Hagelin
Date: Sun, 13 Dec 1992 16:13
Date: Sun, 13 Dec 1992 16:13
47 lines
1738 bytes
1738 bytes
Hello everybody !
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...
The code look's like this:
In my MDIFrame I construct the child window like this
GetModule->MakeWindow( new TMySpecialWindow(this, "Title"));
and in the constructor for TMySpecialWindow it looks like this:
TMySpecialWindow::TMySpecialWindow(.bla.) : TWindow (.bla.)
{
Attr.Style &= ~(WS_MAXIMIZEBOX);
...
}
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
--
--------
Martin Hagelin
hagelin@elixir.e.kth.se
Technical Details
Message-ID:
<HAGELIN.92Dec13171329@festis.elixir.e.kth.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!enterpoop.mit.edu!eru.mt.luth.se!kth.se!news.kth.se!hagelinShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!enterpoop.mit.edu!eru.mt.luth.se!kth.se!news.kth.se!hagelin From: hagelin@elixir.e.kth.se (Martin Hagelin) Newsgroups: comp.os.ms-windows.programmer.misc Subject: OWL and MDI question Message-ID: <HAGELIN.92Dec13171329@festis.elixir.e.kth.se> Date: 13 Dec 92 16:13:29 GMT Sender: usenet@kth.se (Usenet) Distribution: comp Organization: School of EE, Royal Institute of Technology, Sweden Lines: 47 Nntp-Posting-Host: festis.e.kth.se