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
32b6a1a0
Commit
32b6a1a0
authored
Sep 09, 2008
by
Hirofumi Katayama
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notepad: Cancel closing window by cancelling "Save As" dialog box.
parent
cd999b20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
dialog.c
programs/notepad/dialog.c
+7
-5
dialog.h
programs/notepad/dialog.h
+2
-2
No files found.
programs/notepad/dialog.c
View file @
32b6a1a0
...
...
@@ -182,8 +182,7 @@ BOOL DoCloseFile(void)
/* prompt user to save changes */
nResult
=
AlertFileNotSaved
(
Globals
.
szFileName
);
switch
(
nResult
)
{
case
IDYES
:
DIALOG_FileSave
();
break
;
case
IDYES
:
return
DIALOG_FileSave
();
case
IDNO
:
break
;
...
...
@@ -316,15 +315,16 @@ VOID DIALOG_FileOpen(VOID)
}
VOID
DIALOG_FileSave
(
VOID
)
BOOL
DIALOG_FileSave
(
VOID
)
{
if
(
Globals
.
szFileName
[
0
]
==
'\0'
)
DIALOG_FileSaveAs
();
return
DIALOG_FileSaveAs
();
else
DoSaveFile
();
return
TRUE
;
}
VOID
DIALOG_FileSaveAs
(
VOID
)
BOOL
DIALOG_FileSaveAs
(
VOID
)
{
OPENFILENAME
saveas
;
WCHAR
szPath
[
MAX_PATH
];
...
...
@@ -352,7 +352,9 @@ VOID DIALOG_FileSaveAs(VOID)
SetFileName
(
szPath
);
UpdateWindowCaption
();
DoSaveFile
();
return
TRUE
;
}
return
FALSE
;
}
typedef
struct
{
...
...
programs/notepad/dialog.h
View file @
32b6a1a0
...
...
@@ -20,8 +20,8 @@
VOID
DIALOG_FileNew
(
VOID
);
VOID
DIALOG_FileOpen
(
VOID
);
VOID
DIALOG_FileSave
(
VOID
);
VOID
DIALOG_FileSaveAs
(
VOID
);
BOOL
DIALOG_FileSave
(
VOID
);
BOOL
DIALOG_FileSaveAs
(
VOID
);
VOID
DIALOG_FilePrint
(
VOID
);
VOID
DIALOG_FilePageSetup
(
VOID
);
VOID
DIALOG_FilePrinterSetup
(
VOID
);
...
...
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