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
0ad5638b
Commit
0ad5638b
authored
Sep 02, 2006
by
Hippocrates Sendoukas
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: WM_CONTEXTMENU fix for custom context menus.
parent
0134e8f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
editor.c
dlls/riched20/editor.c
+5
-3
No files found.
dlls/riched20/editor.c
View file @
0ad5638b
...
@@ -1077,13 +1077,13 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
...
@@ -1077,13 +1077,13 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
return
FALSE
;
return
FALSE
;
}
}
static
void
ME_ShowContextMenu
(
ME_TextEditor
*
editor
,
int
x
,
int
y
)
static
BOOL
ME_ShowContextMenu
(
ME_TextEditor
*
editor
,
int
x
,
int
y
)
{
{
CHARRANGE
selrange
;
CHARRANGE
selrange
;
HMENU
menu
;
HMENU
menu
;
int
seltype
=
0
;
int
seltype
=
0
;
if
(
!
editor
->
lpOleCallback
)
if
(
!
editor
->
lpOleCallback
)
return
;
return
FALSE
;
ME_GetSelection
(
editor
,
(
int
*
)
&
selrange
.
cpMin
,
(
int
*
)
&
selrange
.
cpMax
);
ME_GetSelection
(
editor
,
(
int
*
)
&
selrange
.
cpMin
,
(
int
*
)
&
selrange
.
cpMax
);
if
(
selrange
.
cpMin
==
selrange
.
cpMax
)
if
(
selrange
.
cpMin
==
selrange
.
cpMax
)
seltype
|=
SEL_EMPTY
;
seltype
|=
SEL_EMPTY
;
...
@@ -1099,6 +1099,7 @@ static void ME_ShowContextMenu(ME_TextEditor *editor, int x, int y)
...
@@ -1099,6 +1099,7 @@ static void ME_ShowContextMenu(ME_TextEditor *editor, int x, int y)
TrackPopupMenu
(
menu
,
TPM_LEFTALIGN
|
TPM_RIGHTBUTTON
,
x
,
y
,
0
,
GetParent
(
editor
->
hWnd
),
NULL
);
TrackPopupMenu
(
menu
,
TPM_LEFTALIGN
|
TPM_RIGHTBUTTON
,
x
,
y
,
0
,
GetParent
(
editor
->
hWnd
),
NULL
);
DestroyMenu
(
menu
);
DestroyMenu
(
menu
);
}
}
return
TRUE
;
}
}
ME_TextEditor
*
ME_MakeEditor
(
HWND
hWnd
)
{
ME_TextEditor
*
ME_MakeEditor
(
HWND
hWnd
)
{
...
@@ -2335,7 +2336,8 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
...
@@ -2335,7 +2336,8 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
ME_SelectWord
(
editor
);
ME_SelectWord
(
editor
);
break
;
break
;
case
WM_CONTEXTMENU
:
case
WM_CONTEXTMENU
:
ME_ShowContextMenu
(
editor
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
));
if
(
!
ME_ShowContextMenu
(
editor
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
)))
goto
do_default
;
break
;
break
;
case
WM_PAINT
:
case
WM_PAINT
:
if
(
editor
->
bRedraw
)
if
(
editor
->
bRedraw
)
...
...
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