[ 1580776 ] wxAnimationCtrl::SetInactiveBitmap

Additionally call UnShare() in it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-10-21 13:51:38 +00:00
parent 1a5e269be8
commit 8e458bb539
7 changed files with 147 additions and 49 deletions

View File

@@ -19,6 +19,7 @@
#include "wx/animdecod.h"
#include "wx/control.h"
#include "wx/timer.h"
#include "wx/bitmap.h"
class WXDLLIMPEXP_ADV wxAnimation;
@@ -64,7 +65,6 @@ protected:
// auto-resizes by default to fit the new animation when SetAnimation() is called
#define wxAC_DEFAULT_STYLE (wxNO_BORDER)
class WXDLLIMPEXP_ADV wxAnimationCtrlBase : public wxControl
{
public:
@@ -82,6 +82,13 @@ public: // public API
virtual bool IsPlaying() const = 0;
virtual void SetInactiveBitmap(const wxBitmap &bmp);
wxBitmap GetInactiveBitmap() const
{ return m_bmpStatic; }
protected:
wxBitmap m_bmpStatic;
private:
DECLARE_ABSTRACT_CLASS(wxAnimationCtrlBase)
};