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
e98687f4
Commit
e98687f4
authored
Oct 20, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/syslink: Implement LWS_IGNORERETURN.
parent
b853de80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
syslink.c
dlls/comctl32/syslink.c
+4
-2
commctrl.h
include/commctrl.h
+1
-0
No files found.
dlls/comctl32/syslink.c
View file @
e98687f4
...
...
@@ -96,6 +96,7 @@ typedef struct
COLORREF
VisitedColor
;
/* Color of visited links */
COLORREF
BackColor
;
/* Background color, set on creation */
WCHAR
BreakChar
;
/* Break Character for the current font */
BOOL
IgnoreReturn
;
/* (infoPtr->Style & LWS_IGNORERETURN) on creation */
}
SYSLINK_INFO
;
static
const
WCHAR
SL_LINKOPEN
[]
=
{
'<'
,
'a'
,
0
};
...
...
@@ -1451,13 +1452,13 @@ static LRESULT SYSLINK_LButtonUp (SYSLINK_INFO *infoPtr, const POINT *pt)
*/
static
BOOL
SYSLINK_OnEnter
(
const
SYSLINK_INFO
*
infoPtr
)
{
if
(
infoPtr
->
HasFocus
)
if
(
infoPtr
->
HasFocus
&&
!
infoPtr
->
IgnoreReturn
)
{
PDOC_ITEM
Focus
;
int
id
;
Focus
=
SYSLINK_GetFocusLink
(
infoPtr
,
&
id
);
if
(
Focus
!=
NULL
)
if
(
Focus
)
{
SYSLINK_SendParentNotify
(
infoPtr
,
NM_RETURN
,
Focus
,
id
);
return
TRUE
;
...
...
@@ -1753,6 +1754,7 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
infoPtr
->
BackColor
=
infoPtr
->
Style
&
LWS_TRANSPARENT
?
comctl32_color
.
clrWindow
:
comctl32_color
.
clrBtnFace
;
infoPtr
->
BreakChar
=
' '
;
infoPtr
->
IgnoreReturn
=
infoPtr
->
Style
&
LWS_IGNORERETURN
;
TRACE
(
"SysLink Ctrl creation, hwnd=%p
\n
"
,
hwnd
);
SYSLINK_SetText
(
infoPtr
,
((
LPCREATESTRUCTW
)
lParam
)
->
lpszName
);
return
0
;
...
...
include/commctrl.h
View file @
e98687f4
...
...
@@ -5054,6 +5054,7 @@ static const WCHAR WC_LINK[] = { 'S','y','s','L','i','n','k',0 };
/* SysLink styles */
#define LWS_TRANSPARENT 0x0001
#define LWS_IGNORERETURN 0x0002
/* SysLink messages */
#define LM_HITTEST (WM_USER + 768)
...
...
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