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
381adbf1
Commit
381adbf1
authored
Nov 18, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add tests for internal window messages of FindWindowEx.
parent
0cf86baf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
win.c
dlls/user32/tests/win.c
+20
-0
No files found.
dlls/user32/tests/win.c
View file @
381adbf1
...
...
@@ -63,6 +63,7 @@ static DWORD (WINAPI *pGetLayout)(HDC hdc);
static
BOOL
(
WINAPI
*
pMirrorRgn
)(
HWND
hwnd
,
HRGN
hrgn
);
static
BOOL
test_lbuttondown_flag
;
static
DWORD
num_gettext_msgs
;
static
HWND
hwndMessage
;
static
HWND
hwndMain
,
hwndMain2
;
static
HHOOK
hhook
;
...
...
@@ -794,6 +795,9 @@ static LRESULT WINAPI main_window_procA(HWND hwnd, UINT msg, WPARAM wparam, LPAR
flush_events
(
FALSE
);
}
break
;
case
WM_GETTEXT
:
num_gettext_msgs
++
;
break
;
}
return
DefWindowProcA
(
hwnd
,
msg
,
wparam
,
lparam
);
...
...
@@ -6935,22 +6939,38 @@ static void test_FindWindowEx(void)
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
"caption"
,
WS_POPUP
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
0
,
"CreateWindowExA error %d
\n
"
,
GetLastError
()
);
num_gettext_msgs
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
""
);
ok
(
found
==
NULL
,
"expected a NULL hwnd
\n
"
);
todo_wine
ok
(
num_gettext_msgs
==
0
,
"got %u WM_GETTEXT messages
\n
"
,
num_gettext_msgs
);
num_gettext_msgs
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
NULL
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
ok
(
num_gettext_msgs
==
0
,
"got %u WM_GETTEXT messages
\n
"
,
num_gettext_msgs
);
num_gettext_msgs
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
"caption"
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
todo_wine
ok
(
num_gettext_msgs
==
0
,
"got %u WM_GETTEXT messages
\n
"
,
num_gettext_msgs
);
DestroyWindow
(
hwnd
);
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
NULL
,
WS_POPUP
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
0
,
"CreateWindowExA error %d
\n
"
,
GetLastError
()
);
num_gettext_msgs
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
""
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
todo_wine
ok
(
num_gettext_msgs
==
0
,
"got %u WM_GETTEXT messages
\n
"
,
num_gettext_msgs
);
num_gettext_msgs
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
NULL
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
ok
(
num_gettext_msgs
==
0
,
"got %u WM_GETTEXT messages
\n
"
,
num_gettext_msgs
);
DestroyWindow
(
hwnd
);
...
...
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