]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/panelg.h
Add wxPanel::SetBackgroundBitmap().
[wxWidgets.git] / include / wx / generic / panelg.h
index 9376b27adf0cedfecf0ff1d8b15cd2f8a72dc6be..9b87ee1a399118a00f043df78805e3c583470a30 100644 (file)
@@ -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);
 };