]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/custombgwin.h
No changes, just make wxAUI SetActivePane() a member function.
[wxWidgets.git] / include / wx / univ / custombgwin.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/custombgwin.h
3 // Purpose: wxUniv implementation of wxCustomBackgroundWindow.
4 // Author: Vadim Zeitlin
5 // Created: 2011-10-10
6 // RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_UNIV_CUSTOMBGWIN_H_
12 #define _WX_UNIV_CUSTOMBGWIN_H_
13
14 // ----------------------------------------------------------------------------
15 // wxCustomBackgroundWindow
16 // ----------------------------------------------------------------------------
17
18 template <class W>
19 class wxCustomBackgroundWindow : public W,
20 public wxCustomBackgroundWindowBase
21 {
22 public:
23 typedef W BaseWindowClass;
24
25 wxCustomBackgroundWindow() { }
26
27 protected:
28 virtual void DoSetBackgroundBitmap(const wxBitmap& bmp)
29 {
30 // We have support for background bitmap even at the base class level.
31 BaseWindowClass::SetBackground(bmp, wxALIGN_NOT, wxTILE);
32 }
33
34 wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCustomBackgroundWindow, W);
35 };
36
37 #endif // _WX_UNIV_CUSTOMBGWIN_H_