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
87366355
Commit
87366355
authored
Jun 18, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix some typos (copy-paste).
parent
3aaa530c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
rebar.c
dlls/comctl32/tests/rebar.c
+8
-8
No files found.
dlls/comctl32/tests/rebar.c
View file @
87366355
...
@@ -104,7 +104,7 @@ static HWND build_toolbar(int nr, HWND hParent)
...
@@ -104,7 +104,7 @@ static HWND build_toolbar(int nr, HWND hParent)
case
1
:
iBitmapId
=
IDB_VIEW_SMALL_COLOR
;
break
;
case
1
:
iBitmapId
=
IDB_VIEW_SMALL_COLOR
;
break
;
case
2
:
iBitmapId
=
IDB_STD_SMALL_COLOR
;
break
;
case
2
:
iBitmapId
=
IDB_STD_SMALL_COLOR
;
break
;
}
}
ok
(
SendMessage
(
hToolbar
,
TB_LOADIMAGES
,
iBitmapId
,
(
LPARAM
)
HINST_COMMCTRL
)
==
0
,
"TB_LOADIMAGE failed
\n
"
);
ok
(
SendMessage
(
hToolbar
,
TB_LOADIMAGES
,
iBitmapId
,
(
LPARAM
)
HINST_COMMCTRL
)
==
0
,
"TB_LOADIMAGE
S
failed
\n
"
);
ok
(
SendMessage
(
hToolbar
,
TB_ADDBUTTONS
,
5
+
nr
,
(
LPARAM
)
btns
),
"TB_ADDBUTTONS failed
\n
"
);
ok
(
SendMessage
(
hToolbar
,
TB_ADDBUTTONS
,
5
+
nr
,
(
LPARAM
)
btns
),
"TB_ADDBUTTONS failed
\n
"
);
return
hToolbar
;
return
hToolbar
;
}
}
...
@@ -310,7 +310,7 @@ static int rbsize_numtests = 0;
...
@@ -310,7 +310,7 @@ static int rbsize_numtests = 0;
count = SendMessage(hRebar, RB_GETBANDCOUNT, 0, 0); \
count = SendMessage(hRebar, RB_GETBANDCOUNT, 0, 0); \
compare(count, res->nBands, "%d"); \
compare(count, res->nBands, "%d"); \
for (i=0; i<min(count, res->nBands); i++) { \
for (i=0; i<min(count, res->nBands); i++) { \
ok(SendMessageA(hRebar, RB_GETRECT, i, (LPARAM)&rc) == 1, "RB_
ITEM
RECT\n"); \
ok(SendMessageA(hRebar, RB_GETRECT, i, (LPARAM)&rc) == 1, "RB_
GET
RECT\n"); \
if (!(res->bands[i].fStyle & RBBS_HIDDEN)) \
if (!(res->bands[i].fStyle & RBBS_HIDDEN)) \
check_rect("band", rc, res->bands[i].rc); \
check_rect("band", rc, res->bands[i].rc); \
rbi.cbSize = sizeof(REBARBANDINFO); \
rbi.cbSize = sizeof(REBARBANDINFO); \
...
@@ -790,12 +790,12 @@ static void bandinfo_test(void)
...
@@ -790,12 +790,12 @@ static void bandinfo_test(void)
rb
.
cyChild
=
30
;
rb
.
cyChild
=
30
;
rb
.
cyMaxChild
=
20
;
rb
.
cyMaxChild
=
20
;
rb
.
cyIntegral
=
10
;
rb
.
cyIntegral
=
10
;
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
INSERTBAND
failed
\n
"
);
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
SETBANDINFO
failed
\n
"
);
expect_band_content
(
0
,
0
,
0
,
GetSysColor
(
COLOR_3DFACE
),
""
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
0
);
expect_band_content
(
0
,
0
,
0
,
GetSysColor
(
COLOR_3DFACE
),
""
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
0
);
rb
.
fMask
=
RBBIM_TEXT
;
rb
.
fMask
=
RBBIM_TEXT
;
rb
.
lpText
=
szABC
;
rb
.
lpText
=
szABC
;
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
INSERTBAND
failed
\n
"
);
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
SETBANDINFO
failed
\n
"
);
expect_band_content
(
0
,
0
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABC"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
35
);
expect_band_content
(
0
,
0
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABC"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
35
);
rb
.
cbSize
=
sizeof
(
REBARBANDINFO
);
rb
.
cbSize
=
sizeof
(
REBARBANDINFO
);
...
@@ -806,21 +806,21 @@ static void bandinfo_test(void)
...
@@ -806,21 +806,21 @@ static void bandinfo_test(void)
rb
.
fMask
=
RBBIM_HEADERSIZE
;
rb
.
fMask
=
RBBIM_HEADERSIZE
;
rb
.
cxHeader
=
50
;
rb
.
cxHeader
=
50
;
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
INSERTBAND
failed
\n
"
);
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
SETBANDINFO
failed
\n
"
);
expect_band_content
(
0
,
0x40000000
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABC"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
50
);
expect_band_content
(
0
,
0x40000000
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABC"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
50
);
rb
.
cxHeader
=
5
;
rb
.
cxHeader
=
5
;
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
INSERTBAND
failed
\n
"
);
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
SETBANDINFO
failed
\n
"
);
expect_band_content
(
0
,
0x40000000
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABC"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
5
);
expect_band_content
(
0
,
0x40000000
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABC"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
5
);
rb
.
fMask
=
RBBIM_TEXT
;
rb
.
fMask
=
RBBIM_TEXT
;
rb
.
lpText
=
szABCD
;
rb
.
lpText
=
szABCD
;
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
INSERTBAND
failed
\n
"
);
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
SETBANDINFO
failed
\n
"
);
expect_band_content
(
0
,
0x40000000
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABCD"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
5
);
expect_band_content
(
0
,
0x40000000
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABCD"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
0xdddddddd
,
0xdddddddd
,
0xdddddddd
,
0
,
0
,
5
);
rb
.
fMask
=
RBBIM_STYLE
|
RBBIM_TEXT
;
rb
.
fMask
=
RBBIM_STYLE
|
RBBIM_TEXT
;
rb
.
fStyle
=
RBBS_VARIABLEHEIGHT
;
rb
.
fStyle
=
RBBS_VARIABLEHEIGHT
;
rb
.
lpText
=
szABC
;
rb
.
lpText
=
szABC
;
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
INSERTBAND
failed
\n
"
);
ok
(
SendMessageA
(
hRebar
,
RB_SETBANDINFOA
,
0
,
(
LPARAM
)
&
rb
),
"RB_
SETBANDINFO
failed
\n
"
);
expect_band_content
(
0
,
RBBS_VARIABLEHEIGHT
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABC"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
20
,
0x7fffffff
,
0
,
0
,
0
,
40
);
expect_band_content
(
0
,
RBBS_VARIABLEHEIGHT
,
0
,
GetSysColor
(
COLOR_3DFACE
),
"ABC"
,
-
1
,
NULL
,
15
,
20
,
0
,
NULL
,
0
,
20
,
0x7fffffff
,
0
,
0
,
0
,
40
);
DestroyWindow
(
hRebar
);
DestroyWindow
(
hRebar
);
...
...
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