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
6c954455
Commit
6c954455
authored
Jul 01, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Jul 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Set the default separator width when notifying a -ve cmd id.
parent
89655119
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
toolbar.c
dlls/comctl32/tests/toolbar.c
+2
-1
toolbar.c
dlls/comctl32/toolbar.c
+2
-1
No files found.
dlls/comctl32/tests/toolbar.c
View file @
6c954455
...
...
@@ -195,10 +195,10 @@ static LRESULT parent_wnd_notify(LPARAM lParam)
}
else
{
ok
(
restore
->
tbButton
.
iBitmap
==
-
1
,
"got %08x
\n
"
,
restore
->
tbButton
.
iBitmap
);
ok
(
*
restore
->
pCurrent
==
0xcafe0000
+
restore
->
iItem
,
"got %08x
\n
"
,
*
restore
->
pCurrent
);
if
(
restore
->
iItem
<
7
||
restore
->
iItem
==
10
)
{
ok
(
restore
->
tbButton
.
iBitmap
==
-
1
,
"got %08x
\n
"
,
restore
->
tbButton
.
iBitmap
);
if
(
restore
->
iItem
<
7
)
ok
(
restore
->
tbButton
.
idCommand
==
restore
->
iItem
*
2
+
1
,
"%d: got %08x
\n
"
,
restore
->
iItem
,
restore
->
tbButton
.
idCommand
);
else
...
...
@@ -208,6 +208,7 @@ static LRESULT parent_wnd_notify(LPARAM lParam)
}
else
{
ok
(
restore
->
tbButton
.
iBitmap
==
8
,
"got %08x
\n
"
,
restore
->
tbButton
.
iBitmap
);
ok
(
restore
->
tbButton
.
idCommand
==
0
,
"%d: got %08x
\n
"
,
restore
->
iItem
,
restore
->
tbButton
.
idCommand
);
if
(
restore
->
iItem
==
7
)
ok
(
restore
->
tbButton
.
fsState
==
0
,
"%d: got %02x
\n
"
,
restore
->
iItem
,
restore
->
tbButton
.
fsState
);
...
...
dlls/comctl32/toolbar.c
View file @
6c954455
...
...
@@ -4201,8 +4201,9 @@ TOOLBAR_Restore(TOOLBAR_INFO *infoPtr, const TBSAVEPARAMSW *lpSave)
if
(
*
nmtbr
.
pCurrent
&
0x80000000
)
{
/* separator */
nmtbr
.
tbButton
.
iBitmap
=
SEPARATOR_WIDTH
;
nmtbr
.
tbButton
.
idCommand
=
0
;
nmtbr
.
tbButton
.
fsStyle
=
TBSTYLE
_SEP
;
nmtbr
.
tbButton
.
fsStyle
=
BTNS
_SEP
;
if
(
*
nmtbr
.
pCurrent
!=
(
DWORD
)
-
1
)
nmtbr
.
tbButton
.
fsState
=
TBSTATE_HIDDEN
;
}
...
...
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