Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
21b94d4c
Commit
21b94d4c
authored
Aug 18, 2006
by
Oleg Krylov
Committed by
Alexandre Julliard
Aug 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Correctly map toolbar bitmap mask color in case of non-default color scheme.
parent
9edcd1c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
toolbar.c
dlls/comctl32/toolbar.c
+13
-13
No files found.
dlls/comctl32/toolbar.c
View file @
21b94d4c
...
...
@@ -2689,48 +2689,48 @@ TOOLBAR_AddBitmap (HWND hwnd, WPARAM wParam, LPARAM lParam)
switch
(
lpAddBmp
->
nID
)
{
case
IDB_STD_SMALL_COLOR
:
hbmLoad
=
LoadBitmapW
(
COMCTL32_hModule
,
MAKEINTRESOURCEW
(
IDB_STD_SMALL
)
);
hbmLoad
=
CreateMappedBitmap
(
COMCTL32_hModule
,
IDB_STD_SMALL
,
0
,
NULL
,
0
);
nIndex
=
ImageList_AddMasked
(
himlDef
,
hbmLoad
,
comctl32_color
.
clrBtnFace
);
DeleteObject
(
hbmLoad
);
break
;
case
IDB_STD_LARGE_COLOR
:
hbmLoad
=
LoadBitmapW
(
COMCTL32_hModule
,
MAKEINTRESOURCEW
(
IDB_STD_LARGE
)
);
hbmLoad
=
CreateMappedBitmap
(
COMCTL32_hModule
,
IDB_STD_LARGE
,
0
,
NULL
,
0
);
nIndex
=
ImageList_AddMasked
(
himlDef
,
hbmLoad
,
comctl32_color
.
clrBtnFace
);
DeleteObject
(
hbmLoad
);
break
;
case
IDB_VIEW_SMALL_COLOR
:
hbmLoad
=
LoadBitmapW
(
COMCTL32_hModule
,
MAKEINTRESOURCEW
(
IDB_VIEW_SMALL
)
);
hbmLoad
=
CreateMappedBitmap
(
COMCTL32_hModule
,
IDB_VIEW_SMALL
,
0
,
NULL
,
0
);
nIndex
=
ImageList_AddMasked
(
himlDef
,
hbmLoad
,
comctl32_color
.
clrBtnFace
);
DeleteObject
(
hbmLoad
);
break
;
case
IDB_VIEW_LARGE_COLOR
:
hbmLoad
=
LoadBitmapW
(
COMCTL32_hModule
,
MAKEINTRESOURCEW
(
IDB_VIEW_LARGE
)
);
hbmLoad
=
CreateMappedBitmap
(
COMCTL32_hModule
,
IDB_VIEW_LARGE
,
0
,
NULL
,
0
);
nIndex
=
ImageList_AddMasked
(
himlDef
,
hbmLoad
,
comctl32_color
.
clrBtnFace
);
DeleteObject
(
hbmLoad
);
break
;
case
IDB_HIST_SMALL_COLOR
:
hbmLoad
=
LoadBitmapW
(
COMCTL32_hModule
,
MAKEINTRESOURCEW
(
IDB_HIST_SMALL
)
);
hbmLoad
=
CreateMappedBitmap
(
COMCTL32_hModule
,
IDB_HIST_SMALL
,
0
,
NULL
,
0
);
nIndex
=
ImageList_AddMasked
(
himlDef
,
hbmLoad
,
comctl32_color
.
clrBtnFace
);
DeleteObject
(
hbmLoad
);
break
;
case
IDB_HIST_LARGE_COLOR
:
hbmLoad
=
LoadBitmapW
(
COMCTL32_hModule
,
MAKEINTRESOURCEW
(
IDB_HIST_LARGE
)
);
hbmLoad
=
CreateMappedBitmap
(
COMCTL32_hModule
,
IDB_HIST_LARGE
,
0
,
NULL
,
0
);
nIndex
=
ImageList_AddMasked
(
himlDef
,
hbmLoad
,
comctl32_color
.
clrBtnFace
);
DeleteObject
(
hbmLoad
);
...
...
@@ -2744,7 +2744,7 @@ TOOLBAR_AddBitmap (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
else
{
hbmLoad
=
LoadBitmapW
(
lpAddBmp
->
hInst
,
(
LPWSTR
)
lpAddBmp
->
nID
);
hbmLoad
=
CreateMappedBitmap
(
lpAddBmp
->
hInst
,
lpAddBmp
->
nID
,
0
,
NULL
,
0
);
nIndex
=
ImageList_AddMasked
(
himlDef
,
hbmLoad
,
comctl32_color
.
clrBtnFace
);
DeleteObject
(
hbmLoad
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment