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
724f1900
Commit
724f1900
authored
Oct 26, 1998
by
Pascal Cuoq
Committed by
Alexandre Julliard
Oct 26, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
32-bit clipboard support.
parent
e948930e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
edit.c
controls/edit.c
+9
-15
clipboard.c
windows/clipboard.c
+0
-0
No files found.
controls/edit.c
View file @
724f1900
...
...
@@ -2990,27 +2990,24 @@ static void EDIT_WM_ContextMenu(WND *wnd, EDITSTATE *es, HWND32 hwnd, INT32 x, I
*
* WM_COPY
*
* FIXME: replace with 32 bit calls as soon as they are implemented
* in the clipboard code
*
*/
static
void
EDIT_WM_Copy
(
WND
*
wnd
,
EDITSTATE
*
es
)
{
INT32
s
=
es
->
selection_start
;
INT32
e
=
es
->
selection_end
;
HGLOBAL
16
hdst
;
HGLOBAL
32
hdst
;
LPSTR
dst
;
if
(
e
==
s
)
return
;
ORDER_INT32
(
s
,
e
);
hdst
=
GlobalAlloc
16
(
GMEM_MOVEABLE
,
(
DWORD
)(
e
-
s
+
1
));
dst
=
GlobalLock
16
(
hdst
);
hdst
=
GlobalAlloc
32
(
GMEM_MOVEABLE
,
(
DWORD
)(
e
-
s
+
1
));
dst
=
GlobalLock
32
(
hdst
);
lstrcpyn32A
(
dst
,
es
->
text
+
s
,
e
-
s
+
1
);
GlobalUnlock
16
(
hdst
);
GlobalUnlock
32
(
hdst
);
OpenClipboard32
(
wnd
->
hwndSelf
);
EmptyClipboard32
();
SetClipboardData
16
(
CF_TEXT
,
hdst
);
SetClipboardData
32
(
CF_TEXT
,
hdst
);
CloseClipboard32
();
}
...
...
@@ -3703,20 +3700,17 @@ static void EDIT_WM_Paint(WND *wnd, EDITSTATE *es)
*
* WM_PASTE
*
* FIXME: replace with 32 bit handler once GetClipboardData32() is
* implemented in misc/clipboard.c
*
*/
static
void
EDIT_WM_Paste
(
WND
*
wnd
,
EDITSTATE
*
es
)
{
HGLOBAL
16
hsrc
;
HGLOBAL
32
hsrc
;
LPSTR
src
;
OpenClipboard32
(
wnd
->
hwndSelf
);
if
((
hsrc
=
GetClipboardData
16
(
CF_TEXT
)))
{
src
=
(
LPSTR
)
GlobalLock
16
(
hsrc
);
if
((
hsrc
=
GetClipboardData
32
(
CF_TEXT
)))
{
src
=
(
LPSTR
)
GlobalLock
32
(
hsrc
);
EDIT_EM_ReplaceSel
(
wnd
,
es
,
TRUE
,
src
);
GlobalUnlock
16
(
hsrc
);
GlobalUnlock
32
(
hsrc
);
}
CloseClipboard32
();
}
...
...
windows/clipboard.c
View file @
724f1900
This diff is collapsed.
Click to expand it.
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