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
f935a10a
Commit
f935a10a
authored
Mar 01, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix Monthcal tests failures on some VMs.
parent
9419e97c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
monthcal.c
dlls/comctl32/tests/monthcal.c
+9
-0
No files found.
dlls/comctl32/tests/monthcal.c
View file @
f935a10a
...
...
@@ -612,7 +612,9 @@ static LRESULT WINAPI monthcal_subclass_proc(HWND hwnd, UINT message, WPARAM wPa
static
HWND
create_monthcal_control
(
DWORD
style
)
{
WNDPROC
oldproc
;
RECT
rect
;
HWND
hwnd
;
BOOL
ret
;
hwnd
=
CreateWindowExA
(
0
,
MONTHCAL_CLASSA
,
""
,
WS_CHILD
|
WS_BORDER
|
WS_VISIBLE
|
style
,
0
,
0
,
300
,
400
,
parent_wnd
,
NULL
,
GetModuleHandleA
(
NULL
),
NULL
);
...
...
@@ -625,6 +627,13 @@ static HWND create_monthcal_control(DWORD style)
SendMessageA
(
hwnd
,
WM_SETFONT
,
(
WPARAM
)
GetStockObject
(
SYSTEM_FONT
),
0
);
/* make sure calendar grid is 2x1 */
ret
=
SendMessageA
(
hwnd
,
MCM_GETMINREQRECT
,
0
,
(
LPARAM
)
&
rect
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
ret
=
SetWindowPos
(
hwnd
,
NULL
,
0
,
0
,
rect
.
right
*
5
/
2
,
rect
.
bottom
*
3
/
2
,
SWP_NOMOVE
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
return
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