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
a53eab60
Commit
a53eab60
authored
Feb 25, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Add paste support.
parent
38ad0457
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
resource.h
programs/wordpad/resource.h
+1
-0
wordpad.c
programs/wordpad/wordpad.c
+5
-0
No files found.
programs/wordpad/resource.h
View file @
a53eab60
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#define ID_EDIT_GETTEXT 1309
#define ID_EDIT_GETTEXT 1309
#define ID_EDIT_COPY 1310
#define ID_EDIT_COPY 1310
#define ID_EDIT_CUT 1311
#define ID_EDIT_CUT 1311
#define ID_EDIT_PASTE 1312
#define ID_FORMAT_BOLD 1400
#define ID_FORMAT_BOLD 1400
#define ID_FORMAT_ITALIC 1401
#define ID_FORMAT_ITALIC 1401
...
...
programs/wordpad/wordpad.c
View file @
a53eab60
...
@@ -227,6 +227,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -227,6 +227,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
AddSeparator
(
hToolBarWnd
);
AddSeparator
(
hToolBarWnd
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_CUT
,
ID_EDIT_CUT
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_CUT
,
ID_EDIT_CUT
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_COPY
,
ID_EDIT_COPY
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_COPY
,
ID_EDIT_COPY
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_PASTE
,
ID_EDIT_PASTE
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_UNDO
,
ID_EDIT_UNDO
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_UNDO
,
ID_EDIT_UNDO
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_REDOW
,
ID_EDIT_REDO
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_REDOW
,
ID_EDIT_REDO
);
AddSeparator
(
hToolBarWnd
);
AddSeparator
(
hToolBarWnd
);
...
@@ -372,6 +373,10 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -372,6 +373,10 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
PostMessage
(
hwndEditor
,
WM_COPY
,
0
,
0
);
PostMessage
(
hwndEditor
,
WM_COPY
,
0
,
0
);
break
;
break
;
case
ID_EDIT_PASTE
:
PostMessage
(
hwndEditor
,
WM_PASTE
,
0
,
0
);
break
;
case
ID_EDIT_SELECTALL
:
case
ID_EDIT_SELECTALL
:
{
{
CHARRANGE
range
=
{
0
,
-
1
};
CHARRANGE
range
=
{
0
,
-
1
};
...
...
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