]>
Commit | Line | Data |
---|---|---|
e9576ca5 | 1 | ///////////////////////////////////////////////////////////////////////////// |
59cf2e49 | 2 | // Name: src/mac/carbon/mdi.cpp |
e9576ca5 | 3 | // Purpose: MDI classes |
a31a5f85 | 4 | // Author: Stefan Csomor |
e9576ca5 | 5 | // Modified by: |
a31a5f85 | 6 | // Created: 1998-01-01 |
e9576ca5 | 7 | // RCS-ID: $Id$ |
a31a5f85 | 8 | // Copyright: (c) Stefan Csomor |
59cf2e49 | 9 | // Licence: wxWindows licence |
e9576ca5 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
3d1a4878 SC |
12 | #include "wx/wxprec.h" |
13 | ||
179e085f RN |
14 | #if wxUSE_MDI |
15 | ||
59cf2e49 WS |
16 | #include "wx/mdi.h" |
17 | ||
38c8fce8 | 18 | #ifndef WX_PRECOMP |
38c8fce8 DE |
19 | #include "wx/log.h" |
20 | #include "wx/menu.h" | |
21 | #include "wx/settings.h" | |
22 | #include "wx/statusbr.h" | |
23 | #endif | |
e9576ca5 | 24 | |
76a5e5d2 | 25 | #include "wx/mac/private.h" |
70024cfb | 26 | #include "wx/mac/uma.h" |
76a5e5d2 | 27 | |
fe08e597 | 28 | extern wxWindowList wxModelessWindows; |
e9576ca5 | 29 | |
e9576ca5 SC |
30 | IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame, wxFrame) |
31 | IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame, wxFrame) | |
32 | IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxWindow) | |
33 | ||
34 | BEGIN_EVENT_TABLE(wxMDIParentFrame, wxFrame) | |
59cf2e49 WS |
35 | EVT_ACTIVATE(wxMDIParentFrame::OnActivate) |
36 | EVT_SYS_COLOUR_CHANGED(wxMDIParentFrame::OnSysColourChanged) | |
e9576ca5 SC |
37 | END_EVENT_TABLE() |
38 | ||
39 | BEGIN_EVENT_TABLE(wxMDIClientWindow, wxWindow) | |
59cf2e49 | 40 | EVT_SCROLL(wxMDIClientWindow::OnScroll) |
e9576ca5 SC |
41 | END_EVENT_TABLE() |
42 | ||
947f3b35 | 43 | #define TRACE_MDI "mdi" |
fd8278bf | 44 | |
0a67a93b SC |
45 | static const int IDM_WINDOWTILEHOR = 4001; |
46 | static const int IDM_WINDOWCASCADE = 4002; | |
47 | static const int IDM_WINDOWICONS = 4003; | |
48 | static const int IDM_WINDOWNEXT = 4004; | |
49 | static const int IDM_WINDOWTILEVERT = 4005; | |
0a67a93b | 50 | |
fb728ebb SC |
51 | // others |
52 | ||
53 | void UMAHighlightAndActivateWindow( WindowRef inWindowRef , bool inActivate ) | |
54 | { | |
55 | #if 1 // TODO REMOVE | |
56 | if ( inWindowRef ) | |
57 | { | |
58 | // bool isHighlighted = IsWindowHighlited( inWindowRef ) ; | |
59 | // if ( inActivate != isHighlighted ) | |
60 | #ifndef __LP64__ | |
61 | GrafPtr port ; | |
62 | GetPort( &port ) ; | |
63 | SetPortWindowPort( inWindowRef ) ; | |
64 | #endif | |
65 | HiliteWindow( inWindowRef , inActivate ) ; | |
66 | ControlRef control = NULL ; | |
67 | ::GetRootControl( inWindowRef , &control ) ; | |
68 | if ( control ) | |
69 | { | |
70 | if ( inActivate ) | |
71 | ::ActivateControl( control ) ; | |
72 | else | |
73 | ::DeactivateControl( control ) ; | |
74 | } | |
75 | #ifndef __LP64__ | |
76 | SetPort( port ) ; | |
77 | #endif | |
78 | } | |
79 | #endif | |
80 | } | |
81 | ||
a57ac1c4 | 82 | // ---------------------------------------------------------------------------- |
e9576ca5 | 83 | // Parent frame |
a57ac1c4 | 84 | // ---------------------------------------------------------------------------- |
e9576ca5 | 85 | |
a57ac1c4 | 86 | void wxMDIParentFrame::Init() |
e9576ca5 | 87 | { |
0a67a93b SC |
88 | m_clientWindow = NULL; |
89 | m_currentChild = NULL; | |
90 | m_windowMenu = (wxMenu*) NULL; | |
a57ac1c4 VZ |
91 | m_parentFrameActive = true; |
92 | m_shouldBeShown = false; | |
e9576ca5 SC |
93 | } |
94 | ||
95 | bool wxMDIParentFrame::Create(wxWindow *parent, | |
5a7d70fe DS |
96 | wxWindowID id, |
97 | const wxString& title, | |
98 | const wxPoint& pos, | |
99 | const wxSize& size, | |
100 | long style, | |
101 | const wxString& name) | |
e9576ca5 | 102 | { |
e40298d5 JS |
103 | // this style can be used to prevent a window from having the standard MDI |
104 | // "Window" menu | |
105 | if ( style & wxFRAME_NO_WINDOW_MENU ) | |
106 | { | |
107 | m_windowMenu = (wxMenu *)NULL; | |
108 | style -= wxFRAME_NO_WINDOW_MENU ; | |
109 | } | |
110 | else // normal case: we have the window menu, so construct it | |
111 | { | |
112 | m_windowMenu = new wxMenu; | |
5a7d70fe | 113 | |
e40298d5 JS |
114 | m_windowMenu->Append(IDM_WINDOWCASCADE, wxT("&Cascade")); |
115 | m_windowMenu->Append(IDM_WINDOWTILEHOR, wxT("Tile &Horizontally")); | |
116 | m_windowMenu->Append(IDM_WINDOWTILEVERT, wxT("Tile &Vertically")); | |
117 | m_windowMenu->AppendSeparator(); | |
118 | m_windowMenu->Append(IDM_WINDOWICONS, wxT("&Arrange Icons")); | |
119 | m_windowMenu->Append(IDM_WINDOWNEXT, wxT("&Next")); | |
120 | } | |
5a7d70fe | 121 | |
6e42617a VZ |
122 | if ( !wxFrame::Create( parent , id , title , pos , size , style , name ) ) |
123 | return false; | |
124 | ||
a57ac1c4 | 125 | m_parentFrameActive = true; |
5a7d70fe | 126 | |
6e42617a | 127 | m_clientWindow = OnCreateClient(); |
5a7d70fe | 128 | |
6e42617a | 129 | return m_clientWindow != NULL; |
e9576ca5 SC |
130 | } |
131 | ||
132 | wxMDIParentFrame::~wxMDIParentFrame() | |
133 | { | |
0a67a93b | 134 | DestroyChildren(); |
5a7d70fe | 135 | |
ea3cdc4f | 136 | // already deleted by DestroyChildren() |
0a67a93b | 137 | m_clientWindow = NULL ; |
5a7d70fe | 138 | |
ea3cdc4f | 139 | delete m_windowMenu; |
e9576ca5 SC |
140 | } |
141 | ||
e9576ca5 SC |
142 | void wxMDIParentFrame::SetMenuBar(wxMenuBar *menu_bar) |
143 | { | |
e40298d5 | 144 | wxFrame::SetMenuBar( menu_bar ) ; |
e9576ca5 SC |
145 | } |
146 | ||
0bba37f5 DE |
147 | void wxMDIParentFrame::GetRectForTopLevelChildren(int *x, int *y, int *w, int *h) |
148 | { | |
5a7d70fe | 149 | if (x) |
0bba37f5 | 150 | *x = 0; |
5a7d70fe | 151 | if (y) |
0bba37f5 | 152 | *y = 0; |
5a7d70fe DS |
153 | |
154 | wxDisplaySize(w, h); | |
0bba37f5 DE |
155 | } |
156 | ||
a57ac1c4 VZ |
157 | void wxMDIParentFrame::AddChild(wxWindowBase *child) |
158 | { | |
9fbc9db0 SC |
159 | // moved this to front, so that we don't run into unset m_parent problems later |
160 | wxFrame::AddChild(child); | |
161 | ||
a57ac1c4 VZ |
162 | if ( !m_currentChild ) |
163 | { | |
164 | m_currentChild = wxDynamicCast(child, wxMDIChildFrame); | |
165 | ||
3ee39f97 | 166 | if ( m_currentChild && IsShown() && !ShouldBeVisible() ) |
a57ac1c4 | 167 | { |
3ee39f97 VZ |
168 | // we shouldn't remain visible any more |
169 | wxFrame::Show(false); | |
170 | m_shouldBeShown = true; | |
a57ac1c4 VZ |
171 | } |
172 | } | |
a57ac1c4 VZ |
173 | } |
174 | ||
175 | void wxMDIParentFrame::RemoveChild(wxWindowBase *child) | |
176 | { | |
177 | if ( child == m_currentChild ) | |
178 | { | |
179 | // the current child isn't active any more, try to find another one | |
180 | m_currentChild = NULL; | |
181 | ||
182 | for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst(); | |
183 | node; | |
184 | node = node->GetNext() ) | |
185 | { | |
186 | wxMDIChildFrame * | |
187 | childCur = wxDynamicCast(node->GetData(), wxMDIChildFrame); | |
188 | if ( childCur != child ) | |
189 | { | |
190 | m_currentChild = childCur; | |
191 | break; | |
192 | } | |
193 | } | |
194 | } | |
195 | ||
196 | wxFrame::RemoveChild(child); | |
197 | ||
198 | // if there are no more children left we need to show the frame if we | |
199 | // hadn't shown it before because there were active children and it was | |
200 | // useless (note that we have to do it after fully removing the child, i.e. | |
201 | // after calling the base class RemoveChild() as otherwise we risk to touch | |
202 | // pointer to the child being deleted) | |
203 | if ( !m_currentChild && m_shouldBeShown && !IsShown() ) | |
204 | { | |
205 | // we have to show it, but at least move it out of sight and make it of | |
206 | // smallest possible size (unfortunately (0, 0) doesn't work so that it | |
207 | // doesn't appear in expose | |
208 | SetSize(-10000, -10000, 1, 1); | |
209 | Show(); | |
210 | } | |
211 | } | |
212 | ||
70024cfb | 213 | void wxMDIParentFrame::MacActivate(long timestamp, bool activating) |
e9576ca5 | 214 | { |
5a7d70fe DS |
215 | wxLogTrace(TRACE_MDI, wxT("MDI PARENT=%p MacActivate(0x%08lx,%s)"), this, timestamp, activating ? wxT("ACTIV") : wxT("deact")); |
216 | ||
217 | if (activating) | |
e40298d5 | 218 | { |
5a7d70fe | 219 | if (s_macDeactivateWindow && s_macDeactivateWindow->GetParent() == this) |
70024cfb | 220 | { |
fd8278bf | 221 | wxLogTrace(TRACE_MDI, wxT("child had been scheduled for deactivation, rehighlighting")); |
5a7d70fe | 222 | |
70024cfb | 223 | UMAHighlightAndActivateWindow((WindowRef)s_macDeactivateWindow->MacGetWindowRef(), true); |
5a7d70fe DS |
224 | |
225 | wxLogTrace(TRACE_MDI, wxT("finished highliting child")); | |
226 | ||
70024cfb DE |
227 | s_macDeactivateWindow = NULL; |
228 | } | |
5a7d70fe | 229 | else if (s_macDeactivateWindow == this) |
70024cfb | 230 | { |
fd8278bf | 231 | wxLogTrace(TRACE_MDI, wxT("Avoided deactivation/activation of this=%p"), this); |
5a7d70fe | 232 | |
70024cfb DE |
233 | s_macDeactivateWindow = NULL; |
234 | } | |
235 | else // window to deactivate is NULL or is not us or one of our kids | |
236 | { | |
237 | // activate kid instead | |
5a7d70fe DS |
238 | if (m_currentChild) |
239 | m_currentChild->MacActivate(timestamp, activating); | |
70024cfb | 240 | else |
5a7d70fe | 241 | wxFrame::MacActivate(timestamp, activating); |
70024cfb | 242 | } |
e40298d5 | 243 | } |
70024cfb | 244 | else |
e40298d5 | 245 | { |
70024cfb | 246 | // We were scheduled for deactivation, and now we do it. |
5a7d70fe | 247 | if (s_macDeactivateWindow == this) |
e40298d5 | 248 | { |
70024cfb | 249 | s_macDeactivateWindow = NULL; |
5a7d70fe DS |
250 | if (m_currentChild) |
251 | m_currentChild->MacActivate(timestamp, activating); | |
252 | wxFrame::MacActivate(timestamp, activating); | |
70024cfb DE |
253 | } |
254 | else // schedule ourselves for deactivation | |
255 | { | |
5a7d70fe DS |
256 | if (s_macDeactivateWindow) |
257 | wxLogTrace(TRACE_MDI, wxT("window=%p SHOULD have been deactivated, oh well!"), s_macDeactivateWindow); | |
fd8278bf | 258 | wxLogTrace(TRACE_MDI, wxT("Scheduling delayed MDI Parent deactivation")); |
5a7d70fe | 259 | |
70024cfb | 260 | s_macDeactivateWindow = this; |
e40298d5 | 261 | } |
e40298d5 | 262 | } |
e9576ca5 SC |
263 | } |
264 | ||
70024cfb DE |
265 | void wxMDIParentFrame::OnActivate(wxActivateEvent& event) |
266 | { | |
267 | event.Skip(); | |
268 | } | |
269 | ||
e9576ca5 SC |
270 | // Returns the active MDI child window |
271 | wxMDIChildFrame *wxMDIParentFrame::GetActiveChild() const | |
272 | { | |
e40298d5 | 273 | return m_currentChild ; |
e9576ca5 SC |
274 | } |
275 | ||
276 | // Create the client window class (don't Create the window, | |
277 | // just return a new class) | |
278 | wxMDIClientWindow *wxMDIParentFrame::OnCreateClient() | |
279 | { | |
6e42617a | 280 | return new wxMDIClientWindow( this ); |
e9576ca5 SC |
281 | } |
282 | ||
283 | // Responds to colour changes, and passes event on to children. | |
284 | void wxMDIParentFrame::OnSysColourChanged(wxSysColourChangedEvent& event) | |
285 | { | |
286 | // TODO | |
5a7d70fe | 287 | |
e9576ca5 SC |
288 | // Propagate the event to the non-top-level children |
289 | wxFrame::OnSysColourChanged(event); | |
290 | } | |
291 | ||
292 | // MDI operations | |
293 | void wxMDIParentFrame::Cascade() | |
294 | { | |
295 | // TODO | |
296 | } | |
297 | ||
0d97c090 | 298 | void wxMDIParentFrame::Tile(wxOrientation WXUNUSED(orient)) |
e9576ca5 SC |
299 | { |
300 | // TODO | |
301 | } | |
302 | ||
303 | void wxMDIParentFrame::ArrangeIcons() | |
304 | { | |
305 | // TODO | |
306 | } | |
307 | ||
308 | void wxMDIParentFrame::ActivateNext() | |
309 | { | |
310 | // TODO | |
311 | } | |
312 | ||
313 | void wxMDIParentFrame::ActivatePrevious() | |
314 | { | |
315 | // TODO | |
316 | } | |
317 | ||
a57ac1c4 VZ |
318 | bool wxMDIParentFrame::ShouldBeVisible() const |
319 | { | |
320 | for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst(); | |
321 | node; | |
322 | node = node->GetNext() ) | |
323 | { | |
49c48f81 VZ |
324 | wxWindow *win = node->GetData(); |
325 | ||
326 | if ( win->IsShown() | |
327 | && !wxDynamicCast(win, wxMDIChildFrame) | |
a57ac1c4 | 328 | #if wxUSE_STATUSBAR |
3a46bcdd | 329 | && win != (wxWindow*) GetStatusBar() |
5a7d70fe DS |
330 | #endif |
331 | && win != GetClientWindow() ) | |
a57ac1c4 VZ |
332 | { |
333 | // if we have a non-MDI child, do remain visible so that it could | |
334 | // be used | |
335 | return true; | |
336 | } | |
337 | } | |
338 | ||
339 | return false; | |
340 | } | |
341 | ||
29e92efb VZ |
342 | bool wxMDIParentFrame::Show( bool show ) |
343 | { | |
a57ac1c4 VZ |
344 | m_shouldBeShown = false; |
345 | ||
29e92efb VZ |
346 | // don't really show the MDI frame unless it has any children other than |
347 | // MDI children as it is pretty useless in this case | |
507ad426 | 348 | |
29e92efb VZ |
349 | if ( show ) |
350 | { | |
a57ac1c4 | 351 | if ( !ShouldBeVisible() && m_currentChild ) |
4a60e3f0 | 352 | { |
a57ac1c4 VZ |
353 | // don't make the window visible now but remember that we should |
354 | // have had done it | |
355 | m_shouldBeShown = true; | |
5a7d70fe | 356 | |
a57ac1c4 | 357 | return false; |
4a60e3f0 | 358 | } |
29e92efb VZ |
359 | } |
360 | ||
a57ac1c4 | 361 | return wxFrame::Show(show); |
29e92efb VZ |
362 | } |
363 | ||
a57ac1c4 | 364 | // ---------------------------------------------------------------------------- |
e9576ca5 | 365 | // Child frame |
a57ac1c4 | 366 | // ---------------------------------------------------------------------------- |
e9576ca5 SC |
367 | |
368 | wxMDIChildFrame::wxMDIChildFrame() | |
0a67a93b SC |
369 | { |
370 | Init() ; | |
371 | } | |
372 | void wxMDIChildFrame::Init() | |
e9576ca5 SC |
373 | { |
374 | } | |
375 | ||
376 | bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, | |
59cf2e49 WS |
377 | wxWindowID id, |
378 | const wxString& title, | |
379 | const wxPoint& pos, | |
380 | const wxSize& size, | |
381 | long style, | |
382 | const wxString& name) | |
e9576ca5 SC |
383 | { |
384 | SetName(name); | |
5a7d70fe | 385 | |
59cf2e49 | 386 | if ( id == wxID_ANY ) |
e9576ca5 | 387 | m_windowId = (int)NewControlId(); |
59cf2e49 WS |
388 | else |
389 | m_windowId = id; | |
5a7d70fe DS |
390 | |
391 | if (parent) | |
392 | parent->AddChild(this); | |
393 | ||
ee263083 SC |
394 | MacCreateRealWindow( pos , size , MacRemoveBordersFromStyle(style) , name ) ; |
395 | SetTitle( title ); | |
5a7d70fe | 396 | |
facd6764 SC |
397 | SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE)); |
398 | ||
e9576ca5 | 399 | wxModelessWindows.Append(this); |
bb64b8bd | 400 | |
923608c3 | 401 | return true; |
e9576ca5 SC |
402 | } |
403 | ||
404 | wxMDIChildFrame::~wxMDIChildFrame() | |
405 | { | |
0a67a93b | 406 | DestroyChildren(); |
e9576ca5 SC |
407 | } |
408 | ||
409 | void wxMDIChildFrame::SetMenuBar(wxMenuBar *menu_bar) | |
410 | { | |
e40298d5 | 411 | return wxFrame::SetMenuBar( menu_bar ) ; |
e9576ca5 SC |
412 | } |
413 | ||
70024cfb DE |
414 | void wxMDIChildFrame::MacActivate(long timestamp, bool activating) |
415 | { | |
bb64b8bd DS |
416 | wxLogTrace(TRACE_MDI, wxT("MDI child=%p MacActivate(0x%08lx,%s)"),this, timestamp, activating ? wxT("ACTIV") : wxT("deact")); |
417 | ||
70024cfb DE |
418 | wxMDIParentFrame *mdiparent = wxDynamicCast(m_parent, wxMDIParentFrame); |
419 | wxASSERT(mdiparent); | |
bb64b8bd DS |
420 | |
421 | if (activating) | |
70024cfb | 422 | { |
bb64b8bd | 423 | if (s_macDeactivateWindow == m_parent) |
70024cfb | 424 | { |
fd8278bf | 425 | wxLogTrace(TRACE_MDI, wxT("parent had been scheduled for deactivation, rehighlighting")); |
bb64b8bd | 426 | |
70024cfb | 427 | UMAHighlightAndActivateWindow((WindowRef)s_macDeactivateWindow->MacGetWindowRef(), true); |
bb64b8bd DS |
428 | |
429 | wxLogTrace(TRACE_MDI, wxT("finished highliting parent")); | |
430 | ||
70024cfb DE |
431 | s_macDeactivateWindow = NULL; |
432 | } | |
bb64b8bd DS |
433 | else if ((mdiparent->m_currentChild == this) || !s_macDeactivateWindow) |
434 | mdiparent->wxFrame::MacActivate(timestamp, activating); | |
435 | ||
436 | if (mdiparent->m_currentChild && mdiparent->m_currentChild != this) | |
437 | mdiparent->m_currentChild->wxFrame::MacActivate(timestamp, false); | |
70024cfb DE |
438 | mdiparent->m_currentChild = this; |
439 | ||
bb64b8bd | 440 | if (s_macDeactivateWindow == this) |
70024cfb | 441 | { |
bb64b8bd DS |
442 | wxLogTrace(TRACE_MDI, wxT("Avoided deactivation/activation of this=%p"), this); |
443 | ||
444 | s_macDeactivateWindow = NULL; | |
70024cfb DE |
445 | } |
446 | else | |
447 | wxFrame::MacActivate(timestamp, activating); | |
448 | } | |
449 | else | |
450 | { | |
451 | // We were scheduled for deactivation, and now we do it. | |
bb64b8bd | 452 | if (s_macDeactivateWindow == this) |
70024cfb DE |
453 | { |
454 | s_macDeactivateWindow = NULL; | |
bb64b8bd DS |
455 | wxFrame::MacActivate(timestamp, activating); |
456 | if (mdiparent->m_currentChild == this) | |
457 | mdiparent->wxFrame::MacActivate(timestamp, activating); | |
70024cfb DE |
458 | } |
459 | else // schedule ourselves for deactivation | |
460 | { | |
bb64b8bd DS |
461 | if (s_macDeactivateWindow) |
462 | wxLogTrace(TRACE_MDI, wxT("window=%p SHOULD have been deactivated, oh well!"), s_macDeactivateWindow); | |
fd8278bf | 463 | wxLogTrace(TRACE_MDI, wxT("Scheduling delayed deactivation")); |
bb64b8bd | 464 | |
70024cfb DE |
465 | s_macDeactivateWindow = this; |
466 | } | |
467 | } | |
468 | } | |
469 | ||
e9576ca5 SC |
470 | // MDI operations |
471 | void wxMDIChildFrame::Maximize() | |
472 | { | |
0a67a93b | 473 | wxFrame::Maximize() ; |
e9576ca5 SC |
474 | } |
475 | ||
476 | void wxMDIChildFrame::Restore() | |
477 | { | |
0a67a93b | 478 | wxFrame::Restore() ; |
e9576ca5 SC |
479 | } |
480 | ||
481 | void wxMDIChildFrame::Activate() | |
482 | { | |
e9576ca5 SC |
483 | } |
484 | ||
0a67a93b SC |
485 | //----------------------------------------------------------------------------- |
486 | // wxMDIClientWindow | |
487 | //----------------------------------------------------------------------------- | |
e9576ca5 SC |
488 | |
489 | wxMDIClientWindow::wxMDIClientWindow() | |
490 | { | |
491 | } | |
492 | ||
493 | wxMDIClientWindow::~wxMDIClientWindow() | |
494 | { | |
0a67a93b | 495 | DestroyChildren(); |
e9576ca5 SC |
496 | } |
497 | ||
498 | bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style) | |
499 | { | |
bb64b8bd | 500 | if ( !wxWindow::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, style) ) |
a57ac1c4 | 501 | return false; |
bb64b8bd | 502 | |
0a67a93b | 503 | wxModelessWindows.Append(this); |
bb64b8bd | 504 | |
a57ac1c4 | 505 | return true; |
e9576ca5 SC |
506 | } |
507 | ||
be7a1013 DE |
508 | // Get size *available for subwindows* i.e. excluding menu bar. |
509 | void wxMDIClientWindow::DoGetClientSize(int *x, int *y) const | |
510 | { | |
511 | wxDisplaySize( x , y ) ; | |
512 | } | |
513 | ||
e9576ca5 | 514 | // Explicitly call default scroll behaviour |
89954433 | 515 | void wxMDIClientWindow::OnScroll(wxScrollEvent& WXUNUSED(event)) |
e9576ca5 | 516 | { |
e9576ca5 SC |
517 | } |
518 | ||
a57ac1c4 | 519 | #endif // wxUSE_MDI |