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
8f16613b
Commit
8f16613b
authored
Oct 13, 1999
by
Uwe Bonnes
Committed by
Alexandre Julliard
Oct 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Get|SetPropA to store lParam to retrieve the OPENFILENAME16 for a
hWnd.
parent
d18dd235
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
filedlg.c
dlls/commdlg/filedlg.c
+5
-4
No files found.
dlls/commdlg/filedlg.c
View file @
8f16613b
...
...
@@ -37,6 +37,7 @@ static int fldrHeight = 0;
static
int
fldrWidth
=
0
;
static
const
char
defaultfilter
[]
=
"
\0\0
"
;
#define OFN_PROP "FILEDLG_OFN_LPARAM"
/***********************************************************************
*
...
...
@@ -741,7 +742,7 @@ static LONG FILEDLG_WMInitDialog(HWND16 hWnd, WPARAM16 wParam, LPARAM lParam)
LPOPENFILENAME16
lpofn
;
char
tmpstr
[
512
];
LPSTR
pstr
,
old_pstr
;
Set
WindowLongA
(
hWnd
,
DWL_USER
,
lParam
);
Set
PropA
(
hWnd
,
OFN_PROP
,
lParam
);
lpofn
=
(
LPOPENFILENAME16
)
PTR_SEG_TO_LIN
(
lParam
);
if
(
lpofn
->
lpstrTitle
)
SetWindowText16
(
hWnd
,
lpofn
->
lpstrTitle
);
/* read custom filter information */
...
...
@@ -842,7 +843,7 @@ static LRESULT FILEDLG_WMCommand(HWND16 hWnd, WPARAM16 wParam, LPARAM lParam)
control
=
wParam
;
notification
=
HIWORD
(
lParam
);
lpofn
=
(
LPOPENFILENAME16
)
PTR_SEG_TO_LIN
(
Get
WindowLongA
(
hWnd
,
DWL_USER
));
lpofn
=
(
LPOPENFILENAME16
)
PTR_SEG_TO_LIN
(
Get
PropA
(
hWnd
,
OFN_PROP
));
switch
(
control
)
{
case
lst1
:
/* file list */
...
...
@@ -1044,7 +1045,7 @@ static LRESULT FILEDLG_WMCommand(HWND16 hWnd, WPARAM16 wParam, LPARAM lParam)
LRESULT
WINAPI
FileOpenDlgProc16
(
HWND16
hWnd
,
UINT16
wMsg
,
WPARAM16
wParam
,
LPARAM
lParam
)
{
LPOPENFILENAME16
lpofn
=
(
LPOPENFILENAME16
)
PTR_SEG_TO_LIN
(
GetWindowLongA
(
hWnd
,
DWL_USER
));
LPOPENFILENAME16
lpofn
=
(
LPOPENFILENAME16
)
PTR_SEG_TO_LIN
(
GetPropA
(
hWnd
,
OFN_PROP
));
if
(
wMsg
!=
WM_INITDIALOG
)
if
(
FILEDLG_HookCallChk
(
lpofn
))
...
...
@@ -1087,7 +1088,7 @@ LRESULT WINAPI FileOpenDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam,
LRESULT
WINAPI
FileSaveDlgProc16
(
HWND16
hWnd
,
UINT16
wMsg
,
WPARAM16
wParam
,
LPARAM
lParam
)
{
LPOPENFILENAME16
lpofn
=
(
LPOPENFILENAME16
)
PTR_SEG_TO_LIN
(
GetWindowLongA
(
hWnd
,
DWL_USER
));
LPOPENFILENAME16
lpofn
=
(
LPOPENFILENAME16
)
PTR_SEG_TO_LIN
(
GetPropA
(
hWnd
,
OFN_PROP
));
if
(
wMsg
!=
WM_INITDIALOG
)
if
(
FILEDLG_HookCallChk
(
lpofn
))
...
...
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