]> git.saurik.com Git - wxWidgets.git/blame - src/msw/panel.cpp
Adjust testing for non-visible controls in wxActiveXContainer.
[wxWidgets.git] / src / msw / panel.cpp
CommitLineData
5b87bd6c
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: src/msw/panel.cpp
3// Purpose: Implementation of wxMSW-specific wxPanel class.
4// Author: Vadim Zeitlin
5// Created: 2011-03-18
6// RCS-ID: $Id: wxhead.cpp,v 1.11 2010-04-22 12:44:51 zeitlin Exp $
7// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19// for compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
22#ifdef __BORLANDC__
23 #pragma hdrstop
24#endif
25
26#ifndef WX_PRECOMP
27 #include "wx/panel.h"
28#endif // WX_PRECOMP
29
30// ============================================================================
31// implementation
32// ============================================================================
33
34bool wxPanel::HasTransparentBackground()
35{
36 for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
37 {
38 if ( win->MSWHasInheritableBackground() )
39 return true;
40
41 if ( win->IsTopLevel() )
42 break;
43 }
44
45 return false;
46}
cd95f7e6 47