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
d072e8b1
Commit
d072e8b1
authored
May 30, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jun 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Store file name globally.
parent
e173504c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
wordpad.c
programs/wordpad/wordpad.c
+5
-0
No files found.
programs/wordpad/wordpad.c
View file @
d072e8b1
...
@@ -114,6 +114,8 @@ static DWORD CALLBACK stream_in(DWORD_PTR cookie, LPBYTE buffer, LONG cb, LONG *
...
@@ -114,6 +114,8 @@ static DWORD CALLBACK stream_in(DWORD_PTR cookie, LPBYTE buffer, LONG cb, LONG *
return
0
;
return
0
;
}
}
static
WCHAR
wszFileName
[
MAX_PATH
];
static
void
set_caption
(
LPCWSTR
wszNewFileName
)
static
void
set_caption
(
LPCWSTR
wszNewFileName
)
{
{
static
const
WCHAR
wszSeparator
[]
=
{
' '
,
'-'
,
' '
,
'\0'
};
static
const
WCHAR
wszSeparator
[]
=
{
' '
,
'-'
,
' '
,
'\0'
};
...
@@ -180,6 +182,8 @@ static void DoOpenFile(LPCWSTR szOpenFileName)
...
@@ -180,6 +182,8 @@ static void DoOpenFile(LPCWSTR szOpenFileName)
SetFocus
(
hEditorWnd
);
SetFocus
(
hEditorWnd
);
set_caption
(
szOpenFileName
);
set_caption
(
szOpenFileName
);
lstrcpyW
(
wszFileName
,
szOpenFileName
);
}
}
static
void
DialogOpenFile
(
void
)
static
void
DialogOpenFile
(
void
)
...
@@ -442,6 +446,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -442,6 +446,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
case
ID_FILE_NEW
:
case
ID_FILE_NEW
:
SetWindowTextA
(
hwndEditor
,
""
);
SetWindowTextA
(
hwndEditor
,
""
);
set_caption
(
NULL
);
set_caption
(
NULL
);
wszFileName
[
0
]
=
'\0'
;
/* FIXME: set default format too */
/* FIXME: set default format too */
break
;
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