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
45a352a7
Commit
45a352a7
authored
Oct 21, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Some applications expect the filter combo to be filled before the CustomDlg is created.
parent
faa956f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
filedlg.c
dlls/comdlg32/filedlg.c
+4
-3
filedlg.c
dlls/comdlg32/tests/filedlg.c
+12
-0
No files found.
dlls/comdlg32/filedlg.c
View file @
45a352a7
...
...
@@ -1388,6 +1388,10 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
LoadStringW
(
COMDLG32_hInstance
,
IDS_SAVE_IN
,
buf
,
sizeof
(
buf
)
/
sizeof
(
WCHAR
));
SetDlgItemTextW
(
hwnd
,
IDC_LOOKINSTATIC
,
buf
);
}
/* Initialize the filter combo box */
FILEDLG95_FILETYPE_Init
(
hwnd
);
return
0
;
}
...
...
@@ -1476,9 +1480,6 @@ static LRESULT FILEDLG95_FillControls(HWND hwnd, WPARAM wParam, LPARAM lParam)
/* Initialize the Look In combo box */
FILEDLG95_LOOKIN_Init
(
fodInfos
->
DlgInfos
.
hwndLookInCB
);
/* Initialize the filter combo box */
FILEDLG95_FILETYPE_Init
(
hwnd
);
/* Browse to the initial directory */
IShellBrowser_BrowseObject
(
fodInfos
->
Shell
.
FOIShellBrowser
,
pidlItemId
,
SBSP_ABSOLUTE
);
...
...
dlls/comdlg32/tests/filedlg.c
View file @
45a352a7
...
...
@@ -207,6 +207,17 @@ cleanup:
static
LONG_PTR
WINAPI
template_hook
(
HWND
dlg
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
msg
==
WM_INITDIALOG
)
{
HWND
p
,
cb
;
INT
sel
;
p
=
GetParent
(
dlg
);
ok
(
p
!=
(
HWND
)
NULL
,
"Failed to get parent of template
\n
"
);
cb
=
GetDlgItem
(
p
,
0x470
);
ok
(
cb
!=
(
HWND
)
NULL
,
"Failed to get filter combobox
\n
"
);
sel
=
SendMessage
(
cb
,
CB_GETCURSEL
,
0
,
0
);
ok
(
sel
!=
-
1
,
"Failed to get selection from filter listbox
\n
"
);
}
if
(
msg
==
WM_NOTIFY
)
{
if
(((
LPNMHDR
)
lParam
)
->
code
==
CDN_FOLDERCHANGE
)
...
...
@@ -245,6 +256,7 @@ static void test_create_view_template(void)
ofn
.
Flags
=
OFN_ENABLEHOOK
|
OFN_EXPLORER
|
OFN_ENABLETEMPLATE
;
ofn
.
hInstance
=
GetModuleHandleW
(
NULL
);
ofn
.
lpTemplateName
=
"template1"
;
ofn
.
lpstrFilter
=
"text
\0
*.txt
\0
All
\0
*
\0\0
"
;
ret
=
GetOpenFileNameA
(
&
ofn
);
ok
(
!
ret
,
"GetOpenFileNameA returned %#x
\n
"
,
ret
);
ret
=
CommDlgExtendedError
();
...
...
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