projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Misc small mods
[wxWidgets.git]
/
src
/
mac
/
mdi.cpp
diff --git
a/src/mac/mdi.cpp
b/src/mac/mdi.cpp
index 57862a20ffd9f937fdc7ec29c21921cc079add33..887f726504c62372d91931ae79baa126d0e637ad 100644
(file)
--- a/
src/mac/mdi.cpp
+++ b/
src/mac/mdi.cpp
@@
-63,7
+63,7
@@
bool wxMDIParentFrame::Create(wxWindow *parent,
else
m_windowId = (int)NewControlId();
else
m_windowId = (int)NewControlId();
- // TODO: create MDI parent frame
+ // this window does not exist really
wxModelessWindows.Append(this);
wxModelessWindows.Append(this);
@@
-77,7
+77,7
@@
wxMDIParentFrame::~wxMDIParentFrame()
// Get size *available for subwindows* i.e. excluding menu bar.
void wxMDIParentFrame::DoGetClientSize(int *x, int *y) const
{
// Get size *available for subwindows* i.e. excluding menu bar.
void wxMDIParentFrame::DoGetClientSize(int *x, int *y) const
{
-
wxFrame::DoGetClient
Size( x , y ) ;
+
wxDisplay
Size( x , y ) ;
}
void wxMDIParentFrame::SetMenuBar(wxMenuBar *menu_bar)
}
void wxMDIParentFrame::SetMenuBar(wxMenuBar *menu_bar)
@@
-177,7
+177,9
@@
bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
if (parent) parent->AddChild(this);
if (parent) parent->AddChild(this);
- // TODO: create child frame
+ MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ;
+
+ m_macWindowData->m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ;
wxModelessWindows.Append(this);
return FALSE;
wxModelessWindows.Append(this);
return FALSE;
@@
-241,6
+243,5
@@
bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style)
// Explicitly call default scroll behaviour
void wxMDIClientWindow::OnScroll(wxScrollEvent& event)
{
// Explicitly call default scroll behaviour
void wxMDIClientWindow::OnScroll(wxScrollEvent& event)
{
- Default(); // Default processing
}
}