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
1f825a36
Commit
1f825a36
authored
Jul 28, 2009
by
Rein Klazes
Committed by
Alexandre Julliard
Aug 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Set MAXTEXTROWS of the toolbar in the file dialog to zero.
parent
d61889ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
filedlg.c
dlls/comdlg32/filedlg.c
+1
-0
filedlg.c
dlls/comdlg32/tests/filedlg.c
+24
-0
No files found.
dlls/comdlg32/filedlg.c
View file @
1f825a36
...
...
@@ -1383,6 +1383,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
/* FIXME: use TB_LOADIMAGES when implemented */
/* SendMessageW(fodInfos->DlgInfos.hwndTB, TB_LOADIMAGES, IDB_VIEW_SMALL_COLOR, HINST_COMMCTRL);*/
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_SETMAXTEXTROWS
,
0
,
0
);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
12
,
(
LPARAM
)
&
tba
[
0
]);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
1
,
(
LPARAM
)
&
tba
[
1
]);
...
...
dlls/comdlg32/tests/filedlg.c
View file @
1f825a36
...
...
@@ -29,6 +29,29 @@
/* ##### */
static
void
toolbarcheck
(
HWND
hDlg
)
{
/* test toolbar properties */
/* bug #10532 */
int
maxtextrows
;
HWND
ctrl
;
DWORD
ret
;
char
classname
[
20
];
for
(
ctrl
=
GetWindow
(
hDlg
,
GW_CHILD
);
ctrl
;
ctrl
=
GetWindow
(
ctrl
,
GW_HWNDNEXT
))
{
GetClassName
(
ctrl
,
classname
,
10
);
classname
[
7
]
=
'\0'
;
if
(
!
strcmp
(
classname
,
"Toolbar"
))
break
;
}
ok
(
ctrl
!=
NULL
,
"could not get the toolbar control
\n
"
);
ret
=
SendMessage
(
ctrl
,
TB_ADDSTRING
,
0
,
(
LPARAM
)
"winetestwinetest
\0\0
"
);
ok
(
ret
==
0
,
"addstring returned %d (expected 0)
\n
"
,
ret
);
maxtextrows
=
SendMessage
(
ctrl
,
TB_GETTEXTROWS
,
0
,
0
);
ok
(
maxtextrows
==
0
,
"Get(Max)TextRows returned %d (expected 0)
\n
"
,
maxtextrows
);
}
static
UINT_PTR
CALLBACK
OFNHookProc
(
HWND
hDlg
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
LPNMHDR
nmh
;
...
...
@@ -49,6 +72,7 @@ static UINT_PTR CALLBACK OFNHookProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM
ok
(
ret
>
0
,
"CMD_GETFOLDERIDLIST not implemented
\n
"
);
if
(
ret
>
5
)
ok
(
buf
[
0
]
==
0x66
&&
buf
[
1
]
==
0x66
,
"CMD_GETFOLDERIDLIST: The buffer was touched on failure
\n
"
);
toolbarcheck
(
GetParent
(
hDlg
));
}
}
...
...
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