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
eaef0841
Commit
eaef0841
authored
Jun 04, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jun 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use DWLP_MSGRESULT to return values from the dialog proc.
parent
b58f0a3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
filedlg.c
dlls/commdlg/filedlg.c
+17
-6
No files found.
dlls/commdlg/filedlg.c
View file @
eaef0841
...
@@ -947,12 +947,15 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
...
@@ -947,12 +947,15 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
{
{
FileOpenDlgInfos
*
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
FileOpenDlgInfos
*
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
WCHAR
lpstrPath
[
MAX_PATH
];
WCHAR
lpstrPath
[
MAX_PATH
];
if
(
!
fodInfos
)
return
-
1
;
HRESULT
retval
;
if
(
!
fodInfos
)
return
FALSE
;
switch
(
uMsg
)
switch
(
uMsg
)
{
{
case
CDM_GETFILEPATH
:
case
CDM_GETFILEPATH
:
return
FILEDLG95_Handle_GetFilePath
(
hwnd
,
(
UINT
)
wParam
,
(
LPVOID
)
lParam
);
retval
=
FILEDLG95_Handle_GetFilePath
(
hwnd
,
(
UINT
)
wParam
,
(
LPVOID
)
lParam
);
break
;
case
CDM_GETFOLDERPATH
:
case
CDM_GETFOLDERPATH
:
TRACE
(
"CDM_GETFOLDERPATH:
\n
"
);
TRACE
(
"CDM_GETFOLDERPATH:
\n
"
);
...
@@ -965,10 +968,12 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
...
@@ -965,10 +968,12 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
WideCharToMultiByte
(
CP_ACP
,
0
,
lpstrPath
,
-
1
,
WideCharToMultiByte
(
CP_ACP
,
0
,
lpstrPath
,
-
1
,
(
LPSTR
)
lParam
,
(
int
)
wParam
,
NULL
,
NULL
);
(
LPSTR
)
lParam
,
(
int
)
wParam
,
NULL
,
NULL
);
}
}
return
strlenW
(
lpstrPath
);
retval
=
strlenW
(
lpstrPath
);
break
;
case
CDM_GETSPEC
:
case
CDM_GETSPEC
:
return
FILEDLG95_Handle_GetFileSpec
(
hwnd
,
(
UINT
)
wParam
,
(
LPSTR
)
lParam
);
retval
=
FILEDLG95_Handle_GetFileSpec
(
hwnd
,
(
UINT
)
wParam
,
(
LPSTR
)
lParam
);
break
;
case
CDM_SETCONTROLTEXT
:
case
CDM_SETCONTROLTEXT
:
TRACE
(
"CDM_SETCONTROLTEXT:
\n
"
);
TRACE
(
"CDM_SETCONTROLTEXT:
\n
"
);
...
@@ -979,13 +984,19 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
...
@@ -979,13 +984,19 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
else
else
SetDlgItemTextA
(
hwnd
,
(
UINT
)
wParam
,
(
LPSTR
)
lParam
);
SetDlgItemTextA
(
hwnd
,
(
UINT
)
wParam
,
(
LPSTR
)
lParam
);
}
}
return
TRUE
;
retval
=
TRUE
;
break
;
case
CDM_HIDECONTROL
:
case
CDM_HIDECONTROL
:
case
CDM_SETDEFEXT
:
case
CDM_SETDEFEXT
:
FIXME
(
"CDM_HIDECONTROL,CDM_SETCONTROLTEXT,CDM_SETDEFEXT not implemented
\n
"
);
FIXME
(
"CDM_HIDECONTROL,CDM_SETCONTROLTEXT,CDM_SETDEFEXT not implemented
\n
"
);
return
-
1
;
retval
=
-
1
;
break
;
default:
return
FALSE
;
}
}
SetWindowLongPtrW
(
hwnd
,
DWLP_MSGRESULT
,
retval
);
return
TRUE
;
return
TRUE
;
}
}
...
...
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