support for alpha channel in toolbars (patch 949843)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-07-25 12:59:32 +00:00
parent 90bddb8566
commit 92661f9794
3 changed files with 33 additions and 2 deletions

View File

@@ -51,6 +51,20 @@ before creating the toolbar:
wxSystemOptions::SetOption(wxT("msw.remap"), 0);
\end{verbatim}
If you wish to use 32-bit images (which include an alpha channel for transparency)
use:
\begin{verbatim}
wxSystemOptions::SetOption(wxT("msw.remap"), 2);
\end{verbatim}
then colour remapping is switched of, and a transparent background used. But only
use this option under Windows XP with true colour:
\begin{verbatim}
(wxTheApp->GetComCtl32Version() >= 600 && ::wxDisplayDepth() >= 32)
\end{verbatim}
\wxheading{Window styles}
\twocolwidtha{5cm}