From 6cab632f3251ae1117d24544813f47c6597a3b34 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Nov 2010 01:23:21 +0000 Subject: [PATCH] Make wxChoicebook background transparent. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wx/choicebk.h b/include/wx/choicebk.h index 4eb0652e81..5dbbecc104 100644 --- a/include/wx/choicebk.h +++ b/include/wx/choicebk.h @@ -79,6 +79,11 @@ public: // 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); -- 2.50.0