X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf858bab79c18d709b3fa3375202c2ddf3d599e5..c6ea1fdaf924be4ee49a19d12f76e4fcd257bb0a:/include/wx/generic/panelg.h diff --git a/include/wx/generic/panelg.h b/include/wx/generic/panelg.h index 9376b27adf..9b87ee1a39 100644 --- a/include/wx/generic/panelg.h +++ b/include/wx/generic/panelg.h @@ -12,6 +12,8 @@ #ifndef _WX_GENERIC_PANELG_H_ #define _WX_GENERIC_PANELG_H_ +#include "wx/bitmap.h" + class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase { public: @@ -40,7 +42,18 @@ public: ) #endif // WXWIN_COMPATIBILITY_2_8 +protected: + virtual void DoSetBackgroundBitmap(const wxBitmap& bmp); + private: + // Event handler for erasing the background which is only used when we have + // a valid background bitmap. + void OnEraseBackground(wxEraseEvent& event); + + + // The bitmap used for painting the background if valid. + wxBitmap m_bitmapBg; + wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel); };