]>
Commit | Line | Data |
---|---|---|
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 | // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org> | |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | // ============================================================================ | |
11 | // declarations | |
12 | // ============================================================================ | |
13 | ||
14 | // ---------------------------------------------------------------------------- | |
15 | // headers | |
16 | // ---------------------------------------------------------------------------- | |
17 | ||
18 | // for compilers that support precompilation, includes "wx.h". | |
19 | #include "wx/wxprec.h" | |
20 | ||
21 | #ifdef __BORLANDC__ | |
22 | #pragma hdrstop | |
23 | #endif | |
24 | ||
25 | #ifndef WX_PRECOMP | |
26 | #include "wx/panel.h" | |
27 | #endif // WX_PRECOMP | |
28 | ||
29 | // ============================================================================ | |
30 | // implementation | |
31 | // ============================================================================ | |
32 | ||
33 | bool wxPanel::HasTransparentBackground() | |
34 | { | |
35 | for ( wxWindow *win = GetParent(); win; win = win->GetParent() ) | |
36 | { | |
37 | if ( win->MSWHasInheritableBackground() ) | |
38 | return true; | |
39 | ||
40 | if ( win->IsTopLevel() ) | |
41 | break; | |
42 | } | |
43 | ||
44 | return false; | |
45 | } | |
46 |