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
b5f59b99
Commit
b5f59b99
authored
Oct 19, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Oct 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Test for EN_UPDATE notification when window isn't visible.
parent
7e4fc8cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
editor.c
dlls/riched20/tests/editor.c
+20
-1
No files found.
dlls/riched20/tests/editor.c
View file @
b5f59b99
...
...
@@ -5143,7 +5143,7 @@ static LRESULT WINAPI ParentMsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam
static
void
test_eventMask
(
void
)
{
HWND
parent
;
int
ret
;
int
ret
,
style
;
WNDCLASSA
cls
;
const
char
text
[]
=
"foo bar
\n
"
;
int
eventMask
;
...
...
@@ -5192,6 +5192,25 @@ static void test_eventMask(void)
ok
(
queriedEventMask
==
(
eventMask
&
~
ENM_CHANGE
),
"wrong event mask (0x%x) during WM_COMMAND
\n
"
,
queriedEventMask
);
SendMessage
(
eventMaskEditHwnd
,
WM_SETREDRAW
,
TRUE
,
0
);
ok
(
IsWindowVisible
(
eventMaskEditHwnd
),
"Window should be visible.
\n
"
);
/* check to see if EN_UPDATE is sent when the editor isn't visible */
SendMessage
(
eventMaskEditHwnd
,
WM_CLEAR
,
0
,
0
);
style
=
GetWindowLong
(
eventMaskEditHwnd
,
GWL_STYLE
);
SetWindowLong
(
eventMaskEditHwnd
,
GWL_STYLE
,
style
&
~
WS_VISIBLE
);
ok
(
!
IsWindowVisible
(
eventMaskEditHwnd
),
"Window shouldn't be visible.
\n
"
);
watchForEventMask
=
EN_UPDATE
;
queriedEventMask
=
0
;
/* initialize to something other than we expect */
SendMessage
(
eventMaskEditHwnd
,
EM_REPLACESEL
,
0
,
(
LPARAM
)
text
);
todo_wine
ok
(
queriedEventMask
==
0
,
"wrong event mask (0x%x) during WM_COMMAND
\n
"
,
queriedEventMask
);
SetWindowLong
(
eventMaskEditHwnd
,
GWL_STYLE
,
style
);
ok
(
IsWindowVisible
(
eventMaskEditHwnd
),
"Window should be visible.
\n
"
);
queriedEventMask
=
0
;
/* initialize to something other than we expect */
SendMessage
(
eventMaskEditHwnd
,
EM_REPLACESEL
,
0
,
(
LPARAM
)
text
);
ok
(
queriedEventMask
==
eventMask
,
"wrong event mask (0x%x) during WM_COMMAND
\n
"
,
queriedEventMask
);
DestroyWindow
(
parent
);
}
...
...
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