X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db1087d2fd2701bf58e2b0657bcafcc0246b6c96..756ead6f83b2bc794aeb76755f5fe11fb3f11728:/include/wx/generic/combo.h diff --git a/include/wx/generic/combo.h b/include/wx/generic/combo.h index 34eead1c6f..b25325c86f 100644 --- a/include/wx/generic/combo.h +++ b/include/wx/generic/combo.h @@ -31,6 +31,8 @@ #endif +#include "wx/dcbuffer.h" + extern WXDLLIMPEXP_DATA_CORE(const char) wxComboBoxNameStr[]; class WXDLLIMPEXP_CORE wxGenericComboCtrl : public wxComboCtrlBase @@ -96,6 +98,21 @@ protected: virtual WXHWND GetEditHWND() const { return NULL; } #endif + // For better transparent background rendering + virtual bool HasTransparentBackground() + { + #if wxALWAYS_NATIVE_DOUBLE_BUFFER + #ifdef __WXGTK__ + // Sanity check for GTK+ + return IsDoubleBuffered(); + #else + return true; + #endif + #else + return false; + #endif + } + // Mandatory virtuals virtual void OnResize();