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
c0e4c40b
Commit
c0e4c40b
authored
Jul 19, 2004
by
James Hawkins
Committed by
Alexandre Julliard
Jul 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better fix for collate icon behavior.
parent
f3c8b830
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
printdlg.c
dlls/commdlg/printdlg.c
+8
-11
No files found.
dlls/commdlg/printdlg.c
View file @
c0e4c40b
...
...
@@ -1204,6 +1204,10 @@ static LRESULT PRINTDLG_WMInitDialog(HWND hDlg, WPARAM wParam,
PrintStructures
->
hLandscapeIcon
=
LoadIconA
(
COMDLG32_hInstance
,
"PD32_LANDSCAPE"
);
/* display the collate/no_collate icon */
SendDlgItemMessageA
(
hDlg
,
ico3
,
STM_SETIMAGE
,
(
WPARAM
)
IMAGE_ICON
,
(
LPARAM
)
PrintStructures
->
hNoCollateIcon
);
if
(
PrintStructures
->
hCollateIcon
==
0
||
PrintStructures
->
hNoCollateIcon
==
0
||
PrintStructures
->
hPortraitIcon
==
0
||
...
...
@@ -1308,6 +1312,10 @@ static LRESULT PRINTDLG_WMInitDialogW(HWND hDlg, WPARAM wParam,
PrintStructures
->
hLandscapeIcon
=
LoadIconA
(
COMDLG32_hInstance
,
"PD32_LANDSCAPE"
);
/* display the collate/no_collate icon */
SendDlgItemMessageA
(
hDlg
,
ico3
,
STM_SETIMAGE
,
(
WPARAM
)
IMAGE_ICON
,
(
LPARAM
)
PrintStructures
->
hNoCollateIcon
);
if
(
PrintStructures
->
hCollateIcon
==
0
||
PrintStructures
->
hNoCollateIcon
==
0
||
PrintStructures
->
hPortraitIcon
==
0
||
...
...
@@ -1622,20 +1630,9 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
if
(
HIWORD
(
wParam
)
==
EN_CHANGE
)
{
INT
copies
=
GetDlgItemInt
(
hDlg
,
edt3
,
NULL
,
FALSE
);
if
(
copies
<=
1
)
{
CheckDlgButton
(
hDlg
,
chx2
,
BST_UNCHECKED
);
SendDlgItemMessageA
(
hDlg
,
ico3
,
STM_SETIMAGE
,
(
WPARAM
)
IMAGE_ICON
,
0
);
EnableWindow
(
GetDlgItem
(
hDlg
,
chx2
),
FALSE
);
}
else
{
EnableWindow
(
GetDlgItem
(
hDlg
,
chx2
),
TRUE
);
SendDlgItemMessageA
(
hDlg
,
ico3
,
STM_SETIMAGE
,
(
WPARAM
)
IMAGE_ICON
,
(
LPARAM
)
PrintStructures
->
hNoCollateIcon
);
}
}
break
;
...
...
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