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
0406b5d5
Commit
0406b5d5
authored
Jan 24, 2011
by
Greg Geldorp
Committed by
Alexandre Julliard
Jan 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix edit tests.
parent
5a9d74a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
edit.c
dlls/user32/tests/edit.c
+17
-4
No files found.
dlls/user32/tests/edit.c
View file @
0406b5d5
...
...
@@ -837,10 +837,15 @@ static void test_edit_control_3(void)
{
HWND
hWnd
;
HWND
hParent
;
int
len
;
HDC
hDC
;
int
len
,
dpi
;
static
const
char
*
str
=
"this is a long string."
;
static
const
char
*
str2
=
"this is a long string.
\r\n
this is a long string.
\r\n
this is a long string.
\r\n
this is a long string."
;
hDC
=
GetDC
(
NULL
);
dpi
=
GetDeviceCaps
(
hDC
,
LOGPIXELSY
);
ReleaseDC
(
NULL
,
hDC
);
trace
(
"EDIT: Test notifications
\n
"
);
hParent
=
CreateWindowExA
(
0
,
...
...
@@ -947,7 +952,7 @@ static void test_edit_control_3(void)
"EDIT"
,
NULL
,
ES_MULTILINE
,
10
,
10
,
50
,
50
,
10
,
10
,
(
50
*
dpi
)
/
96
,
(
50
*
dpi
)
/
96
,
hParent
,
NULL
,
NULL
,
NULL
);
assert
(
hWnd
);
...
...
@@ -992,7 +997,7 @@ static void test_edit_control_3(void)
"EDIT"
,
NULL
,
ES_MULTILINE
|
ES_AUTOHSCROLL
,
10
,
10
,
50
,
50
,
10
,
10
,
(
50
*
dpi
)
/
96
,
(
50
*
dpi
)
/
96
,
hParent
,
NULL
,
NULL
,
NULL
);
assert
(
hWnd
);
...
...
@@ -1527,6 +1532,7 @@ static void test_margins_font_change(void)
ok
(
HIWORD
(
margins
)
==
HIWORD
(
font_margins
),
"got %d
\n
"
,
HIWORD
(
margins
));
SendMessageA
(
hwEdit
,
EM_SETMARGINS
,
EC_LEFTMARGIN
|
EC_RIGHTMARGIN
,
MAKELONG
(
EC_USEFONTINFO
,
EC_USEFONTINFO
));
SendMessageA
(
hwEdit
,
WM_SETFONT
,
(
WPARAM
)
hfont
,
0
);
margins
=
SendMessage
(
hwEdit
,
EM_GETMARGINS
,
0
,
0
);
ok
(
LOWORD
(
margins
)
==
LOWORD
(
font_margins
),
"got %d
\n
"
,
LOWORD
(
margins
));
ok
(
HIWORD
(
margins
)
==
HIWORD
(
font_margins
),
"got %d
\n
"
,
HIWORD
(
margins
));
...
...
@@ -2212,9 +2218,15 @@ static void test_fontsize(void)
{
HWND
hwEdit
;
HFONT
hfont
;
HDC
hDC
;
LOGFONT
lf
;
LONG
r
;
char
szLocalString
[
MAXLEN
];
int
dpi
;
hDC
=
GetDC
(
NULL
);
dpi
=
GetDeviceCaps
(
hDC
,
LOGPIXELSY
);
ReleaseDC
(
NULL
,
hDC
);
memset
(
&
lf
,
0
,
sizeof
(
LOGFONTA
));
strcpy
(
lf
.
lfFaceName
,
"Arial"
);
...
...
@@ -2224,7 +2236,8 @@ static void test_fontsize(void)
trace
(
"EDIT: Oversized font (Multi line)
\n
"
);
hwEdit
=
CreateWindow
(
"EDIT"
,
NULL
,
ES_MULTILINE
|
ES_AUTOHSCROLL
,
0
,
0
,
150
,
50
,
NULL
,
NULL
,
hinst
,
NULL
);
0
,
0
,
(
150
*
dpi
)
/
96
,
(
50
*
dpi
)
/
96
,
NULL
,
NULL
,
hinst
,
NULL
);
SendMessage
(
hwEdit
,
WM_SETFONT
,(
WPARAM
)
hfont
,
0
);
...
...
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