Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6ed2208e
Commit
6ed2208e
authored
Jun 01, 2011
by
Marko Nikolic
Committed by
Alexandre Julliard
Jun 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Removed sign comparison warning in status tests.
parent
cf6dae56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
status.c
dlls/comctl32/tests/status.c
+12
-11
No files found.
dlls/comctl32/tests/status.c
View file @
6ed2208e
...
...
@@ -40,8 +40,8 @@ static WNDPROC g_status_wndproc;
static
RECT
g_rcCreated
;
static
HWND
g_hMainWnd
;
static
int
g_wmsize_count
=
0
;
static
DWORD
g_ysize
;
static
DWORD
g_dpisize
;
static
INT
g_ysize
;
static
INT
g_dpisize
;
static
int
g_wmdrawitm_ctr
;
static
WNDPROC
g_wndproc_saved
;
...
...
@@ -120,7 +120,7 @@ static int CALLBACK check_height_font_enumproc(ENUMLOGFONTEX *enumlf, NEWTEXTMET
static
const
int
sizes
[]
=
{
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
15
,
16
,
20
,
22
,
28
,
36
,
48
,
72
};
DWORD
i
;
DWORD
y
;
INT
y
;
LPSTR
facename
=
(
CHAR
*
)
enumlf
->
elfFullName
;
/* on win9x, enumlf->elfFullName is only valid for truetype fonts */
...
...
@@ -260,6 +260,7 @@ static void test_status_control(void)
HICON
hIcon
;
char
ch
;
char
chstr
[
10
]
=
"Inval id"
;
COLORREF
crColor
=
RGB
(
0
,
0
,
0
);
hWndStatus
=
create_status_control
(
WS_VISIBLE
|
SBT_TOOLTIPS
,
0
);
...
...
@@ -343,14 +344,14 @@ static void test_status_control(void)
}
/* Set background color */
r
=
SendMessage
(
hWndStatus
,
SB_SETBKCOLOR
,
0
,
RGB
(
255
,
0
,
0
));
ok
(
r
==
CLR_DEFAULT
||
broken
(
r
==
0
),
/* win95 */
"Expected
%d, got %d
\n
"
,
CLR_DEFAULT
,
r
);
r
=
SendMessage
(
hWndStatus
,
SB_SETBKCOLOR
,
0
,
CLR_DEFAULT
);
ok
(
r
==
RGB
(
255
,
0
,
0
)
||
broken
(
r
==
0
),
/* win95 */
"Expected
%d, got %d
\n
"
,
RGB
(
255
,
0
,
0
),
r
);
crColo
r
=
SendMessage
(
hWndStatus
,
SB_SETBKCOLOR
,
0
,
RGB
(
255
,
0
,
0
));
ok
(
crColo
r
==
CLR_DEFAULT
||
broken
(
crColor
==
RGB
(
0
,
0
,
0
)
),
/* win95 */
"Expected
0x%.8x, got 0x%.8x
\n
"
,
CLR_DEFAULT
,
crColo
r
);
crColo
r
=
SendMessage
(
hWndStatus
,
SB_SETBKCOLOR
,
0
,
CLR_DEFAULT
);
ok
(
crColo
r
==
RGB
(
255
,
0
,
0
)
||
broken
(
crColor
==
RGB
(
0
,
0
,
0
)
),
/* win95 */
"Expected
0x%.8x, got 0x%.8x
\n
"
,
RGB
(
255
,
0
,
0
),
crColo
r
);
/* Add an icon to the status bar */
hIcon
=
LoadIcon
(
NULL
,
IDI_QUESTION
);
...
...
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