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
8be66cb3
Commit
8be66cb3
authored
Dec 08, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notepad: Remember options selected in the print setup dialog.
parent
b555e91e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
dialog.c
programs/notepad/dialog.c
+10
-0
main.c
programs/notepad/main.c
+2
-0
main.h
programs/notepad/main.h
+2
-0
No files found.
programs/notepad/dialog.c
View file @
8be66cb3
...
...
@@ -407,6 +407,8 @@ VOID DIALOG_FilePrint(VOID)
ZeroMemory
(
&
printer
,
sizeof
(
printer
));
printer
.
lStructSize
=
sizeof
(
printer
);
printer
.
hwndOwner
=
Globals
.
hMainWnd
;
printer
.
hDevMode
=
Globals
.
hDevMode
;
printer
.
hDevNames
=
Globals
.
hDevNames
;
printer
.
hInstance
=
Globals
.
hInstance
;
/* Set some default flags */
...
...
@@ -422,6 +424,9 @@ VOID DIALOG_FilePrint(VOID)
if
(
!
PrintDlg
(
&
printer
))
return
;
Globals
.
hDevMode
=
printer
.
hDevMode
;
Globals
.
hDevNames
=
printer
.
hDevNames
;
assert
(
printer
.
hDC
!=
0
);
/* initialize DOCINFO */
...
...
@@ -519,11 +524,16 @@ VOID DIALOG_FilePrinterSetup(VOID)
ZeroMemory
(
&
printer
,
sizeof
(
printer
));
printer
.
lStructSize
=
sizeof
(
printer
);
printer
.
hwndOwner
=
Globals
.
hMainWnd
;
printer
.
hDevMode
=
Globals
.
hDevMode
;
printer
.
hDevNames
=
Globals
.
hDevNames
;
printer
.
hInstance
=
Globals
.
hInstance
;
printer
.
Flags
=
PD_PRINTSETUP
;
printer
.
nCopies
=
1
;
PrintDlg
(
&
printer
);
Globals
.
hDevMode
=
printer
.
hDevMode
;
Globals
.
hDevNames
=
printer
.
hDevNames
;
}
VOID
DIALOG_FileExit
(
VOID
)
...
...
programs/notepad/main.c
View file @
8be66cb3
...
...
@@ -141,6 +141,8 @@ static VOID NOTEPAD_InitData(VOID)
lstrcpy
(
p
,
all_files
);
p
+=
lstrlen
(
p
)
+
1
;
*
p
=
'\0'
;
Globals
.
hDevMode
=
NULL
;
Globals
.
hDevNames
=
NULL
;
}
/***********************************************************************
...
...
programs/notepad/main.h
View file @
8be66cb3
...
...
@@ -46,6 +46,8 @@ typedef struct
WCHAR
szFooter
[
MAX_PATH
];
FINDREPLACE
find
;
HGLOBAL
hDevMode
;
/* printer mode */
HGLOBAL
hDevNames
;
/* printer names */
}
NOTEPAD_GLOBALS
;
extern
NOTEPAD_GLOBALS
Globals
;
...
...
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