From e40865607cd25e82e438fe2b5c9d54c397e1e84c Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 11 May 2002 06:54:36 +0000 Subject: [PATCH] corrected background git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/frame.cpp | 1 + src/mac/carbon/mdi.cpp | 3 ++- src/mac/frame.cpp | 1 + src/mac/mdi.cpp | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/frame.cpp b/src/mac/carbon/frame.cpp index 990ba1a514..4fe1aec422 100644 --- a/src/mac/carbon/frame.cpp +++ b/src/mac/carbon/frame.cpp @@ -109,6 +109,7 @@ bool wxFrame::Create(wxWindow *parent, MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ; m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ; + SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ; wxModelessWindows.Append(this); diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index 024c4fb6c7..94b0244562 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -244,7 +244,8 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ; - m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ; + m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ; + SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ; wxModelessWindows.Append(this); return FALSE; diff --git a/src/mac/frame.cpp b/src/mac/frame.cpp index 990ba1a514..4fe1aec422 100644 --- a/src/mac/frame.cpp +++ b/src/mac/frame.cpp @@ -109,6 +109,7 @@ bool wxFrame::Create(wxWindow *parent, MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ; m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ; + SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ; wxModelessWindows.Append(this); diff --git a/src/mac/mdi.cpp b/src/mac/mdi.cpp index 024c4fb6c7..94b0244562 100644 --- a/src/mac/mdi.cpp +++ b/src/mac/mdi.cpp @@ -244,7 +244,8 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ; - m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ; + m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ; + SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ; wxModelessWindows.Append(this); return FALSE; -- 2.45.2