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
2409e33f
Commit
2409e33f
authored
Jan 23, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Jan 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Add a helper to return the dialog struct.
parent
50843270
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
printdlg.c
dlls/comdlg32/printdlg.c
+12
-2
No files found.
dlls/comdlg32/printdlg.c
View file @
2409e33f
...
...
@@ -2807,6 +2807,14 @@ static inline LPPAGESETUPHOOK pagesetup_get_hook(const pagesetup_data *data, hoo
return
NULL
;
}
/* This should only be used in calls to hook procs so we return the ptr
already cast to LPARAM */
static
inline
LPARAM
pagesetup_get_dlg_struct
(
const
pagesetup_data
*
data
)
{
return
(
LPARAM
)
data
->
dlga
;
}
static
inline
void
swap_point
(
POINT
*
pt
)
{
LONG
tmp
=
pt
->
x
;
...
...
@@ -3571,7 +3579,8 @@ PRINTDLG_PagePaintProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
WARN
(
"__WINE_PAGESETUPDLGDATA prop not set?
\n
"
);
return
FALSE
;
}
if
(
default_page_paint_hook
(
hWnd
,
WM_PSD_PAGESETUPDLG
,
MAKELONG
(
papersize
,
orientation
),
(
LPARAM
)
data
->
dlga
,
data
))
if
(
default_page_paint_hook
(
hWnd
,
WM_PSD_PAGESETUPDLG
,
MAKELONG
(
papersize
,
orientation
),
pagesetup_get_dlg_struct
(
data
),
data
))
return
FALSE
;
hdc
=
BeginPaint
(
hWnd
,
&
ps
);
...
...
@@ -3703,7 +3712,8 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
res
=
TRUE
;
if
(
pagesetup_get_flags
(
data
)
&
PSD_ENABLEPAGESETUPHOOK
)
{
if
(
!
pagesetup_get_hook
(
data
,
page_setup_hook
)(
hDlg
,
uMsg
,
wParam
,
(
LPARAM
)
data
->
dlga
))
if
(
!
pagesetup_get_hook
(
data
,
page_setup_hook
)(
hDlg
,
uMsg
,
wParam
,
pagesetup_get_dlg_struct
(
data
)))
FIXME
(
"Setup page hook failed?
\n
"
);
}
...
...
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