Added "metal" theme.

Added bool param to wxUniv indicating if the controls
   takes its background from the parent (such as
   static texts, radio buttons etc).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-04-10 20:38:15 +00:00
parent 7de5bdf4b3
commit 67d947ba89
17 changed files with 4691 additions and 78 deletions

View File

@@ -111,6 +111,8 @@ void wxWindow::Init()
m_oldSize.x = -1;
m_oldSize.y = -1;
m_hasDialogBackground = FALSE;
}
bool wxWindow::Create(wxWindow *parent,
@@ -265,10 +267,14 @@ void wxWindow::OnPaint(wxPaintEvent& event)
bool wxWindow::DoDrawBackground(wxDC& dc)
{
// FIXME: leaving this code in leads to partial bg redraws sometimes under
// MSW
// FIXME: Leaving this code in leads to partial bg redraws
// sometimes under MSW.
// The same happens under X11 because it has a clear
// region and an update region and these are sometimes
// different. RR.
wxRect rect;
#ifndef __WXMSW__
// #ifndef __WXMSW__
#if 0
rect = GetUpdateRegion().GetBox();
if ( !rect.width && !rect.height )
#endif