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
8526eee4
Commit
8526eee4
authored
Jun 17, 2009
by
Rein Klazes
Committed by
Alexandre Julliard
Jun 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Fix file dialog resize failures on NT4 and with tiny desktops.
parent
28a2646d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
filedlg.c
dlls/comdlg32/tests/filedlg.c
+7
-3
rsrc.rc
dlls/comdlg32/tests/rsrc.rc
+16
-0
No files found.
dlls/comdlg32/tests/filedlg.c
View file @
8526eee4
...
...
@@ -309,8 +309,12 @@ static LONG_PTR WINAPI resize_template_hook(HWND dlg, UINT msg, WPARAM wParam, L
/* test style */
style
=
GetWindowLong
(
parent
,
GWL_STYLE
);
if
(
resize_testcases
[
index
].
flags
&
OFN_ENABLESIZING
)
ok
(
style
&
WS_SIZEBOX
,
"testid %d: dialog should have a WS_SIZEBOX style.
\n
"
,
index
);
if
(
!
(
style
&
WS_SIZEBOX
))
{
win_skip
(
"OFN_ENABLESIZING flag not supported.
\n
"
);
PostMessage
(
parent
,
WM_COMMAND
,
IDCANCEL
,
0
);
}
else
ok
(
style
&
WS_SIZEBOX
,
"testid %d: dialog should have a WS_SIZEBOX style.
\n
"
,
index
);
else
ok
(
!
(
style
&
WS_SIZEBOX
),
"testid %d: dialog should not have a WS_SIZEBOX style.
\n
"
,
index
);
...
...
@@ -383,7 +387,7 @@ static void test_resize(void)
ofn
.
nMaxFile
=
1042
;
ofn
.
lpfnHook
=
(
LPOFNHOOKPROC
)
resize_template_hook
;
ofn
.
hInstance
=
GetModuleHandle
(
NULL
);
ofn
.
lpTemplateName
=
"template
1
"
;
ofn
.
lpTemplateName
=
"template
_sz
"
;
for
(
i
=
0
;
resize_testcases
[
i
].
flags
!=
0xffffffff
;
i
++
)
{
ofn
.
lCustData
=
i
;
ofn
.
Flags
=
resize_testcases
[
i
].
flags
|
...
...
dlls/comdlg32/tests/rsrc.rc
View file @
8526eee4
...
...
@@ -32,3 +32,19 @@ FONT 8, "MS Shell Dlg"
LTEXT "",-1,28,16,204,31
EDITTEXT 56,65,2,200,12,ES_AUTOHSCROLL
}
/* Used by the resize file dialog tests.
* Keep this template small or get failures
* resizing on small desk tops.
* This will work with 640x480 pixels
*/
TEMPLATE_SZ DIALOG LOADONCALL MOVEABLE DISCARDABLE 5, 43, 300, 40
STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS
FONT 8, "MS Shell Dlg"
{
LTEXT "Path:",-1,28,4,36,8
LTEXT "Text1",-1,4,16,20,40
LTEXT "Text2",-1,232,20,65,8
LTEXT "",-1,28,16,204,31
EDITTEXT 56,65,2,200,12,ES_AUTOHSCROLL
}
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