Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
70e8fce4
Commit
70e8fce4
authored
Apr 14, 2002
by
Mehmet Yasar
Committed by
Alexandre Julliard
Apr 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Clear WS_CAPTION style.
- Send now CDN_FILEOK before FILEOKSTRING. - Fix bug related to DWL_MSGRESUL (we were reading from wrong hwnd).
parent
912f899c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
filedlg95.c
dlls/commdlg/filedlg95.c
+11
-6
No files found.
dlls/commdlg/filedlg95.c
View file @
70e8fce4
...
...
@@ -846,6 +846,10 @@ HRESULT WINAPI FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
{
FileOpenDlgInfos
*
fodInfos
=
(
FileOpenDlgInfos
*
)
lParam
;
/* Hide caption since some program may leave it */
DWORD
Style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
if
(
Style
&
WS_CAPTION
)
SetWindowLongA
(
hwnd
,
GWL_STYLE
,
Style
&
(
~
WS_CAPTION
));
/* Adds the FileOpenDlgInfos in the property list of the dialog
so it will be easily accessible through a GetPropA(...) */
SetPropA
(
hwnd
,
FileOpenDlgInfosStr
,
(
HANDLE
)
fodInfos
);
...
...
@@ -1113,8 +1117,7 @@ static LRESULT FILEDLG95_OnWMCommand(HWND hwnd, WPARAM wParam, LPARAM lParam)
{
/* OK button */
case
IDOK
:
if
(
FILEDLG95_OnOpen
(
hwnd
))
SendCustomDlgNotificationMessage
(
hwnd
,
CDN_FILEOK
);
FILEDLG95_OnOpen
(
hwnd
);
break
;
/* Cancel button */
case
IDCANCEL
:
...
...
@@ -1572,15 +1575,17 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
/* ask the hook if we can close */
if
(
IsHooked
(
fodInfos
))
{
/* FIXME we are sending ASCII-structures. Does not work with NT */
/* first old style */
TRACE
(
"---
\n
"
);
/* First send CDN_FILEOK as MSDN doc says */
SendCustomDlgNotificationMessage
(
hwnd
,
CDN_FILEOK
);
/* FIXME we are sending ASCII-structures. Does not work with NT */
CallWindowProcA
((
WNDPROC
)
fodInfos
->
ofnInfos
->
lpfnHook
,
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
fodInfos
->
HookMsg
.
fileokstring
,
0
,
(
LPARAM
)
fodInfos
->
ofnInfos
);
if
(
GetWindowLongA
(
hwnd
,
DWL_MSGRESULT
))
if
(
GetWindowLongA
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
DWL_MSGRESULT
))
{
TRACE
(
"cancled
\n
"
);
TRACE
(
"canc
e
led
\n
"
);
ret
=
FALSE
;
goto
ret
;
}
...
...
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