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
948dd848
Commit
948dd848
authored
Feb 14, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Basic test for PGN_CALCSIZE.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e804e9a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
pager.c
dlls/comctl32/pager.c
+2
-0
pager.c
dlls/comctl32/tests/pager.c
+22
-0
No files found.
dlls/comctl32/pager.c
View file @
948dd848
...
...
@@ -1036,6 +1036,8 @@ PAGER_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
PAGER_INFO
*
infoPtr
=
(
PAGER_INFO
*
)
GetWindowLongPtrW
(
hwnd
,
0
);
TRACE
(
"(%p, %#x, %#lx, %#lx)
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
infoPtr
&&
(
uMsg
!=
WM_CREATE
))
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/tests/pager.c
View file @
948dd848
...
...
@@ -83,6 +83,28 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
add_message
(
sequences
,
PAGER_SEQ_INDEX
,
&
msg
);
}
if
(
message
==
WM_NOTIFY
)
{
NMHDR
*
nmhdr
=
(
NMHDR
*
)
lParam
;
switch
(
nmhdr
->
code
)
{
case
PGN_CALCSIZE
:
{
NMPGCALCSIZE
*
nmpgcs
=
(
NMPGCALCSIZE
*
)
lParam
;
DWORD
style
=
GetWindowLongA
(
nmpgcs
->
hdr
.
hwndFrom
,
GWL_STYLE
);
if
(
style
&
PGS_HORZ
)
ok
(
nmpgcs
->
dwFlag
==
PGF_CALCWIDTH
,
"Unexpected flags %#x.
\n
"
,
nmpgcs
->
dwFlag
);
else
ok
(
nmpgcs
->
dwFlag
==
PGF_CALCHEIGHT
,
"Unexpected flags %#x.
\n
"
,
nmpgcs
->
dwFlag
);
break
;
}
default:
;
}
}
defwndproc_counter
++
;
ret
=
DefWindowProcA
(
hwnd
,
message
,
wParam
,
lParam
);
defwndproc_counter
--
;
...
...
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