1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
<HTML>
<head><title>wxMDIClientWindow</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxmdiclientwindow"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx134.htm#wxmdichildframe"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx136.htm#wxmdiparentframe"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxMDIClientWindow</H2>
<P>
An MDI client window is a child of <A HREF="wx136.htm#wxmdiparentframe">wxMDIParentFrame</A>, and manages zero or
more <A HREF="wx134.htm#wxmdichildframe">wxMDIChildFrame</A> objects.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx260.htm#wxwindow">wxWindow</A><BR>
<A HREF="wx85.htm#wxevthandler">wxEvtHandler</A><BR>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/mdi.h><P>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
The client window is the area where MDI child windows exist. It doesn't have to cover the whole
parent frame; other windows such as toolbars and a help window might coexist with it.
There can be scrollbars on a client window, which are controlled by the parent window style.<P>
The <B>wxMDIClientWindow</B> class is usually adequate without further derivation, and it is created
automatically when the MDI parent frame is created. If the application needs to derive a new class,
the function <A HREF="wx136.htm#wxmdiparentframeoncreateclient">wxMDIParentFrame::OnCreateClient</A> must be
overridden in order to give an opportunity to use a different class of client window.<P>
Under Windows 95, the client window will automatically have a sunken border style when
the active child is not maximized, and no border style when a child is maximized.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx134.htm#wxmdichildframe">wxMDIChildFrame</A>, <A HREF="wx136.htm#wxmdiparentframe">wxMDIParentFrame</A>,
<A HREF="wx104.htm#wxframe">wxFrame</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxmdiclientwindowconstr">wxMDIClientWindow::wxMDIClientWindow</A><BR>
<A HREF="#topic551">wxMDIClientWindow::~wxMDIClientWindow</A><BR>
<A HREF="#wxmdiclientwindowcreateclient">wxMDIClientWindow::CreateClient</A><BR>
<P>
<HR>
<A NAME="wxmdiclientwindowconstr"></A>
<H3>wxMDIClientWindow::wxMDIClientWindow</H3>
<P>
<B></B> <B>wxMDIClientWindow</B>()<P>
Default constructor.<P>
<B></B> <B>wxMDIClientWindow</B>(<B>wxMDIParentFrame* </B><I>parent</I>, <B>long</B><I> style = 0</I>)<P>
Constructor, creating the window.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>parent</I><UL><UL>
The window parent.</UL></UL>
<P>
<I>style</I><UL><UL>
The window style. Currently unused.</UL></UL>
<P>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
The second style of constructor is called within <A HREF="wx136.htm#wxmdiparentframeoncreateclient">wxMDIParentFrame::OnCreateClient</A>.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx136.htm#wxmdiparentframeconstr">wxMDIParentFrame::wxMDIParentFrame</A>,
<A HREF="wx136.htm#wxmdiparentframeoncreateclient">wxMDIParentFrame::OnCreateClient</A><P>
<HR>
<A NAME="topic551"></A>
<H3>wxMDIClientWindow::~wxMDIClientWindow</H3>
<P>
<B></B> <B>~wxMDIClientWindow</B>()<P>
Destructor.<P>
<HR>
<A NAME="wxmdiclientwindowcreateclient"></A>
<H3>wxMDIClientWindow::CreateClient</H3>
<P>
<B>bool</B> <B>CreateClient</B>(<B>wxMDIParentFrame* </B><I>parent</I>, <B>long</B><I> style = 0</I>)<P>
Used in two-step frame construction. See <A HREF="wx135.htm#wxmdiclientwindowconstr">wxMDIClientWindow::wxMDIClientWindow</A>
for further details.<P>
</BODY></HTML>
|