File: wx134.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (244 lines) | stat: -rw-r--r-- 7,593 bytes parent folder | download
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<HTML>
<head><title>wxMDIChildFrame</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxmdichildframe"></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="wx133.htm#wxmask"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx135.htm#wxmdiclientwindow"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxMDIChildFrame</H2>
<P>
An MDI child frame is a frame that can only exist on a <A HREF="wx135.htm#wxmdiclientwindow">wxMDIClientWindow</A>,
which is itself a child of <A HREF="wx136.htm#wxmdiparentframe">wxMDIParentFrame</A>.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx104.htm#wxframe">wxFrame</A><BR>

<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>
&lt;wx/mdi.h&gt;<P>
<B><FONT COLOR="#FF0000">Window styles</FONT></B><P>


<TABLE>


<TR><TD VALIGN=TOP>
<B>wxCAPTION</B>
</TD>

<TD VALIGN=TOP>
Puts a caption on the frame.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxDEFAULT_FRAME_STYLE</B>
</TD>

<TD VALIGN=TOP>
Defined as <B>wxMINIMIZE_BOX |  wxMAXIMIZE_BOX |  wxTHICK_FRAME |  wxSYSTEM_MENU |  wxCAPTION</B>.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxICONIZE</B>
</TD>

<TD VALIGN=TOP>
Display the frame iconized (minimized) (Windows only).
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxMAXIMIZE</B>
</TD>

<TD VALIGN=TOP>
Displays the frame maximized (Windows only).
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxMAXIMIZE_BOX</B>
</TD>

<TD VALIGN=TOP>
Displays a maximize box on the frame (Windows and Motif only).
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxMINIMIZE</B>
</TD>

<TD VALIGN=TOP>
Identical to <B>wxICONIZE</B>.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxMINIMIZE_BOX</B>
</TD>

<TD VALIGN=TOP>
Displays a minimize box on the frame (Windows and Motif only).
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxRESIZE_BORDER</B>
</TD>

<TD VALIGN=TOP>
Displays a resizeable border around the window (Motif only;
for Windows, it is implicit in wxTHICK_FRAME).
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxSTAY_ON_TOP</B>
</TD>

<TD VALIGN=TOP>
Stay on top of other windows (Windows only).
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxSYSTEM_MENU</B>
</TD>

<TD VALIGN=TOP>
Displays a system menu (Windows and Motif only).
</TD></TR>


<TR><TD VALIGN=TOP>
<B>wxTHICK_FRAME</B>
</TD>

<TD VALIGN=TOP>
Displays a thick frame around the window (Windows and Motif only).
</TD></TR>


</TABLE>
<P>
See also <A HREF="wx305.htm#windowstyles">window styles overview</A>.<P>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
Although internally an MDI child frame is a child of the MDI client window, in wxWindows
you create it as a child of <A HREF="wx136.htm#wxmdiparentframe">wxMDIParentFrame</A>. You can usually
forget that the client window exists.<P>
MDI child frames are clipped to the area of the MDI client window, and may be iconized
on the client window.<P>
You can associate a menubar with a child frame as usual, although an MDI child doesn't display
its menubar under its own title bar. The MDI parent frame's menubar will be changed to
reflect the currently active child frame. If there are currently no children, the parent
frame's own menubar will be displayed.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx135.htm#wxmdiclientwindow">wxMDIClientWindow</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="#wxmdichildframeconstr">wxMDIChildFrame::wxMDIChildFrame</A><BR>
<A HREF="#topic550">wxMDIChildFrame::~wxMDIChildFrame</A><BR>
<A HREF="#wxmdichildframeactivate">wxMDIChildFrame::Activate</A><BR>
<A HREF="#wxmdichildframecreate">wxMDIChildFrame::Create</A><BR>
<A HREF="#wxmdichildframemaximize">wxMDIChildFrame::Maximize</A><BR>
<A HREF="#wxmdichildframerestore">wxMDIChildFrame::Restore</A><BR>
<P>

<HR>
<A NAME="wxmdichildframeconstr"></A>
<H3>wxMDIChildFrame::wxMDIChildFrame</H3>
<P>
<B></B> <B>wxMDIChildFrame</B>()<P>
Default constructor.<P>
<B></B> <B>wxMDIChildFrame</B>(<B>wxMDIParentFrame* </B><I>parent</I>, <B>wxWindowID </B><I>id</I>,
<B>const wxString&amp; </B><I>title</I>, <B>const wxPoint&amp;</B><I> pos = wxDefaultPosition</I>,
<B>const wxSize&amp;</B><I> size = wxDefaultSize</I>, <B>long</B><I> style = wxDEFAULT_FRAME_STYLE</I>,
<B>const wxString&amp; </B><I>name = "frame"</I>)<P>
Constructor, creating the window.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>parent</I><UL><UL>
The window parent. This should not be NULL.</UL></UL>
<P>
<I>id</I><UL><UL>
The window identifier. It may take a value of -1 to indicate a default value.</UL></UL>
<P>
<I>title</I><UL><UL>
The caption to be displayed on the frame's title bar.</UL></UL>
<P>
<I>pos</I><UL><UL>
The window position. A value of (-1, -1) indicates a default position, chosen by
either the windowing system or wxWindows, depending on platform.</UL></UL>
<P>
<I>size</I><UL><UL>
The window size. A value of (-1, -1) indicates a default size, chosen by
either the windowing system or wxWindows, depending on platform.</UL></UL>
<P>
<I>style</I><UL><UL>
The window style. See <A HREF="wx134.htm#wxmdichildframe">wxMDIChildFrame</A>.</UL></UL>
<P>
<I>name</I><UL><UL>
The name of the window. This parameter is used to associate a name with the item,
allowing the application user to set Motif resource values for
individual windows.</UL></UL>
<P>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
None.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx134.htm#wxmdichildframecreate">wxMDIChildFrame::Create</A><P>

<HR>
<A NAME="topic550"></A>
<H3>wxMDIChildFrame::~wxMDIChildFrame</H3>
<P>
<B></B> <B>~wxMDIChildFrame</B>()<P>
Destructor. Destroys all child windows and menu bar if present.<P>

<HR>
<A NAME="wxmdichildframeactivate"></A>
<H3>wxMDIChildFrame::Activate</H3>
<P>
<B>void</B> <B>Activate</B>()<P>
Activates this MDI child frame.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx134.htm#wxmdichildframemaximize">wxMDIChildFrame::Maximize</A>,
<A HREF="wx134.htm#wxmdichildframerestore">wxMDIChildFrame::Restore</A><P>

<HR>
<A NAME="wxmdichildframecreate"></A>
<H3>wxMDIChildFrame::Create</H3>
<P>
<B>bool</B> <B>Create</B>(<B>wxWindow* </B><I>parent</I>, <B>wxWindowID </B><I>id</I>,
<B>const wxString&amp; </B><I>title</I>, <B>const wxPoint&amp;</B><I> pos = wxDefaultPosition</I>,
<B>const wxSize&amp;</B><I> size = wxDefaultSize</I>, <B>long</B><I> style = wxDEFAULT_FRAME_STYLE</I>,
<B>const wxString&amp; </B><I>name = "frame"</I>)<P>
Used in two-step frame construction. See <A HREF="wx134.htm#wxmdichildframeconstr">wxMDIChildFrame::wxMDIChildFrame</A>
for further details.<P>

<HR>
<A NAME="wxmdichildframemaximize"></A>
<H3>wxMDIChildFrame::Maximize</H3>
<P>
<B>void</B> <B>Maximize</B>()<P>
Maximizes this MDI child frame.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx134.htm#wxmdichildframeactivate">wxMDIChildFrame::Activate</A>,
<A HREF="wx134.htm#wxmdichildframerestore">wxMDIChildFrame::Restore</A><P>

<HR>
<A NAME="wxmdichildframerestore"></A>
<H3>wxMDIChildFrame::Restore</H3>
<P>
<B>void</B> <B>Restore</B>()<P>
Restores this MDI child frame (unmaximizes).<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx134.htm#wxmdichildframeactivate">wxMDIChildFrame::Activate</A>,
<A HREF="wx134.htm#wxmdichildframemaximize">wxMDIChildFrame::Maximize</A><P>


</BODY></HTML>