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
01a08438
Commit
01a08438
authored
Sep 25, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Sep 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Use the window handle to send messages to the filename control.
parent
3cfc2ab7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
filedlg.c
dlls/comdlg32/filedlg.c
+7
-7
No files found.
dlls/comdlg32/filedlg.c
View file @
01a08438
...
...
@@ -1546,10 +1546,10 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
TRACE
(
"Value in Filename includes path, overriding InitialDir: %s, %s
\n
"
,
debugstr_w
(
fodInfos
->
filename
),
debugstr_w
(
fodInfos
->
initdir
));
}
Set
DlgItemTextW
(
hwnd
,
IDC_FILENAME
,
fodInfos
->
filename
);
Set
WindowTextW
(
fodInfos
->
DlgInfos
.
hwndFileName
,
fodInfos
->
filename
);
}
else
{
Set
DlgItemTextW
(
hwnd
,
IDC_FILENAME
,
fodInfos
->
filename
);
Set
WindowTextW
(
fodInfos
->
DlgInfos
.
hwndFileName
,
fodInfos
->
filename
);
}
}
...
...
@@ -1623,7 +1623,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
TRACE
(
"Value in Filename includes path, overriding initdir: %s, %s
\n
"
,
debugstr_w
(
fodInfos
->
filename
),
debugstr_w
(
fodInfos
->
initdir
));
}
Set
DlgItemTextW
(
hwnd
,
IDC_FILENAME
,
fodInfos
->
filename
);
Set
WindowTextW
(
fodInfos
->
DlgInfos
.
hwndFileName
,
fodInfos
->
filename
);
}
/* 4. Win2000+: Recently used */
...
...
@@ -1707,7 +1707,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
TRACE
(
"No initial dir specified, using current dir of %s
\n
"
,
debugstr_w
(
fodInfos
->
initdir
));
}
}
SetFocus
(
GetDlgItem
(
hwnd
,
IDC_FILENAME
)
);
SetFocus
(
fodInfos
->
DlgInfos
.
hwndFileName
);
TRACE
(
"After manipulation, file = %s, dir = %s
\n
"
,
debugstr_w
(
fodInfos
->
filename
),
debugstr_w
(
fodInfos
->
initdir
));
/* Must the open as read only check box be checked ?*/
...
...
@@ -3740,10 +3740,10 @@ static int FILEDLG95_FILENAME_GetFileNames (HWND hwnd, LPWSTR * lpstrFileList, U
TRACE
(
"
\n
"
);
/* get the filenames from the
edit
control */
nStrLen
=
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndFileName
,
WM_GETTEXTLENGTH
,
0
,
0
);
/* get the filenames from the
filename
control */
nStrLen
=
GetWindowTextLengthW
(
fodInfos
->
DlgInfos
.
hwndFileName
);
lpstrEdit
=
MemAlloc
(
(
nStrLen
+
1
)
*
sizeof
(
WCHAR
)
);
Get
DlgItemTextW
(
hwnd
,
IDC_FILENAME
,
lpstrEdit
,
nStrLen
+
1
);
Get
WindowTextW
(
fodInfos
->
DlgInfos
.
hwndFileName
,
lpstrEdit
,
nStrLen
+
1
);
TRACE
(
"nStrLen=%u str=%s
\n
"
,
nStrLen
,
debugstr_w
(
lpstrEdit
));
...
...
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