Fix transparency in toolbar buttons when not using comctl32.dll v6.

Old versions of comctl32.dll don't support alpha in the toolbar image list, so
use the masks only for them.

Closes #2609.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-02-04 15:59:47 +00:00
parent 6d34b1b760
commit 8942262811
2 changed files with 54 additions and 10 deletions

View File

@@ -663,7 +663,10 @@ void wxToolBar::CreateDisabledImageList()
(
sizeBitmap.x,
sizeBitmap.y,
bmpDisabled.GetMask() != NULL,
// Don't use mask if we have alpha
// (wxImageList will fall back to
// mask if alpha not supported)
!bmpDisabled.HasAlpha(),
GetToolsCount()
);
break;