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
31e98290
Commit
31e98290
authored
Jul 04, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jul 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Disable copy/cut in menu when appropriate.
parent
886d8048
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 @
31e98290
...
...
@@ -778,6 +778,11 @@ static LRESULT OnInitPopupMenu( HWND hWnd, WPARAM wParam, LPARAM lParam )
PARAFORMAT
pf
;
int
nAlignment
=
-
1
;
REBARBANDINFOW
rbbinfo
;
int
selFrom
,
selTo
;
SendMessageW
(
hEditorWnd
,
EM_GETSEL
,
(
WPARAM
)
&
selFrom
,
(
LPARAM
)
&
selTo
);
EnableMenuItem
(
hMenu
,
ID_EDIT_COPY
,
MF_BYCOMMAND
|
(
selFrom
==
selTo
)
?
MF_GRAYED
:
MF_ENABLED
);
EnableMenuItem
(
hMenu
,
ID_EDIT_CUT
,
MF_BYCOMMAND
|
(
selFrom
==
selTo
)
?
MF_GRAYED
:
MF_ENABLED
);
pf
.
cbSize
=
sizeof
(
PARAFORMAT
);
SendMessageW
(
hwndEditor
,
EM_GETPARAFORMAT
,
0
,
(
LPARAM
)
&
pf
);
...
...
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