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
4a49c8f0
Commit
4a49c8f0
authored
Oct 12, 2000
by
Chris Morgan
Committed by
Alexandre Julliard
Oct 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix depressed state with flat toolbars so pressing the buttons draws
the button in a depressed state. Fix bitmap offsets, fixes bitmap offset problems in file common dialog.
parent
3bd7f587
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
toolbar.c
dlls/comctl32/toolbar.c
+10
-6
No files found.
dlls/comctl32/toolbar.c
View file @
4a49c8f0
...
...
@@ -325,9 +325,13 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
rcArrow
.
left
=
rc
.
right
;
}
/* Take the border into account and center the bitmap horizontally */
rcBitmap
.
left
+=
(
infoPtr
->
nButtonWidth
-
infoPtr
->
nBitmapWidth
-
1
-
2
)
/
2
;
rcBitmap
.
top
+=
1
;
/* Center the bitmap horizontally and vertically */
rcBitmap
.
left
+=
(
infoPtr
->
nButtonWidth
-
infoPtr
->
nBitmapWidth
)
/
2
;
if
(
TOOLBAR_HasText
(
infoPtr
,
btnPtr
))
rcBitmap
.
top
+=
2
;
/* this looks to be the correct value from vmware comparison - cmm */
else
rcBitmap
.
top
+=
(
infoPtr
->
nButtonHeight
-
infoPtr
->
nBitmapHeight
)
/
2
;
TRACE
(
"iBitmap: %d
\n
"
,
btnPtr
->
iBitmap
);
...
...
@@ -446,13 +450,13 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
if
(
hasDropDownArrow
)
TOOLBAR_DrawArrow
(
hdc
,
rcArrow
.
left
+
1
,
rcArrow
.
top
,
COLOR_WINDOWFRAME
);
if
(
btnPtr
->
bHot
&&
infoPtr
->
himlHot
&&
if
(
btnPtr
->
bHot
&&
infoPtr
->
himlHot
&&
TOOLBAR_IsValidBitmapIndex
(
infoPtr
,
btnPtr
->
iBitmap
))
ImageList_Draw
(
infoPtr
->
himlHot
,
btnPtr
->
iBitmap
,
hdc
,
rcBitmap
.
left
+
1
,
rcBitmap
.
top
+
1
,
ILD_NORMAL
);
rcBitmap
.
left
,
rcBitmap
.
top
,
ILD_NORMAL
);
else
if
(
TOOLBAR_IsValidBitmapIndex
(
infoPtr
,
btnPtr
->
iBitmap
))
ImageList_Draw
(
infoPtr
->
himlDef
,
btnPtr
->
iBitmap
,
hdc
,
rcBitmap
.
left
+
1
,
rcBitmap
.
top
+
1
,
ILD_NORMAL
);
rcBitmap
.
left
,
rcBitmap
.
top
,
ILD_NORMAL
);
}
else
{
...
...
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