]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxChoicebook background transparent.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:23:21 +0000 (01:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:23:21 +0000 (01:23 +0000)
This fixes the appearance of an empty wxChoicebook used as a child of a
wxNotebook under MSW.

Closes #12503.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/choicebk.h

index 4eb0652e81a9cb593b572ae12c0729014cf00381..5dbbecc10467e421716ff014eec74bb116850f3c 100644 (file)
@@ -79,6 +79,11 @@ public:
     // returns the choice control
     wxChoice* GetChoiceCtrl() const { return (wxChoice*)m_bookctrl; }
 
     // returns the choice control
     wxChoice* GetChoiceCtrl() const { return (wxChoice*)m_bookctrl; }
 
+    // Override this to return true because the part of parent window
+    // background between our controlling wxChoice and the page area should
+    // show through.
+    virtual bool HasTransparentBackground() { return true; }
+
 protected:
     virtual void DoSetWindowVariant(wxWindowVariant variant);
 
 protected:
     virtual void DoSetWindowVariant(wxWindowVariant variant);