]> git.saurik.com Git - wxWidgets.git/blame - src/common/animatecmn.cpp
Bug fix.
[wxWidgets.git] / src / common / animatecmn.cpp
CommitLineData
72045d57
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/common/animatecmn.cpp
3// Purpose: wxAnimation and wxAnimationCtrl
4// Author: Francesco Montorsi
5// Modified By:
6// Created: 24/09/2006
7// Id: $Id$
8// Copyright: (c) Francesco Montorsi
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12
13// ----------------------------------------------------------------------------
14// headers
15// ----------------------------------------------------------------------------
16
17// For compilers that support precompilation, includes "wx.h".
18#include "wx/wxprec.h"
19
20#if wxUSE_ANIMATIONCTRL
21
22#include "wx/animate.h"
8e458bb5 23#include "wx/bitmap.h"
72045d57
VZ
24
25const wxChar wxAnimationCtrlNameStr[] = wxT("animationctrl");
26
27// global object
28wxAnimation wxNullAnimation;
29
72045d57
VZ
30IMPLEMENT_ABSTRACT_CLASS(wxAnimationBase, wxObject)
31IMPLEMENT_ABSTRACT_CLASS(wxAnimationCtrlBase, wxControl)
32
8e458bb5
RR
33void wxAnimationCtrlBase::SetInactiveBitmap(const wxBitmap &bmp)
34{
35 m_bmpStatic = bmp;
36 m_bmpStatic.UnShare();
37}
72045d57
VZ
38
39
40#endif // wxUSE_ANIMATIONCTRL