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
9d6f88c9
Commit
9d6f88c9
authored
Aug 06, 2004
by
Thomas Weidenmüller
Committed by
Alexandre Julliard
Aug 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented syslink control.
parent
ecff61c8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
0 deletions
+70
-0
Makefile.in
dlls/comctl32/Makefile.in
+1
-0
commctrl.c
dlls/comctl32/commctrl.c
+8
-0
syslink.c
dlls/comctl32/syslink.c
+0
-0
commctrl.h
include/commctrl.h
+61
-0
No files found.
dlls/comctl32/Makefile.in
View file @
9d6f88c9
...
...
@@ -30,6 +30,7 @@ C_SRCS = \
smoothscroll.c
\
string.c
\
status.c
\
syslink.c
\
tab.c
\
toolbar.c
\
tooltips.c
\
...
...
dlls/comctl32/commctrl.c
View file @
9d6f88c9
...
...
@@ -101,6 +101,8 @@ extern void REBAR_Register(void);
extern
void
REBAR_Unregister
(
void
);
extern
void
STATUS_Register
(
void
);
extern
void
STATUS_Unregister
(
void
);
extern
void
SYSLINK_Register
(
void
);
extern
void
SYSLINK_Unregister
(
void
);
extern
void
TAB_Register
(
void
);
extern
void
TAB_Unregister
(
void
);
extern
void
TOOLBAR_Register
(
void
);
...
...
@@ -174,6 +176,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
LISTVIEW_Register
();
PROGRESS_Register
();
STATUS_Register
();
SYSLINK_Register
();
TAB_Register
();
TOOLBAR_Register
();
TOOLTIPS_Register
();
...
...
@@ -198,6 +201,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
PROGRESS_Unregister
();
REBAR_Unregister
();
STATUS_Unregister
();
SYSLINK_Unregister
();
TAB_Unregister
();
TOOLBAR_Unregister
();
TOOLTIPS_Unregister
();
...
...
@@ -711,6 +715,10 @@ InitCommonControlsEx (LPINITCOMMONCONTROLSEX lpInitCtrls)
NATIVEFONT_Register
();
break
;
case
ICC_LINK_CLASS
:
SYSLINK_Register
();
break
;
default:
FIXME
(
"Unknown class! dwICC=0x%lX
\n
"
,
dwMask
);
break
;
...
...
dlls/comctl32/syslink.c
0 → 100644
View file @
9d6f88c9
This diff is collapsed.
Click to expand it.
include/commctrl.h
View file @
9d6f88c9
...
...
@@ -4505,6 +4505,67 @@ INT WINAPI DPA_Search(HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT);
BOOL
WINAPI
Str_SetPtrW
(
LPWSTR
*
,
LPCWSTR
);
/**************************************************************************
* SysLink control
*/
#if defined(__GNUC__)
# define WC_LINK (const WCHAR []){ 'S','y','s','L','i','n','k',0 }
#elif defined(_MSC_VER)
# define WC_LINK L"SysLink"
#else
static
const
WCHAR
WC_LINK
[]
=
{
'S'
,
'y'
,
's'
,
'L'
,
'i'
,
'n'
,
'k'
,
0
};
#endif
/* SysLink messages */
#define LM_HITTEST (WM_USER + 768)
#define LM_GETIDEALHEIGHT (WM_USER + 769)
#define LM_SETITEM (WM_USER + 770)
#define LM_GETITEM (WM_USER + 771)
/* SysLink links flags */
#define LIF_ITEMINDEX 1
#define LIF_STATE 2
#define LIF_ITEMID 4
#define LIF_URL 8
/* SysLink links states */
#define LIS_FOCUSED 1
#define LIS_ENABLED 2
#define LIS_VISITED 4
/* SysLink misc. */
#define INVALID_LINK_INDEX (-1)
#define MAX_LINKID_TEXT 48
#define L_MAX_URL_LENGTH 2084
/* SysLink structures */
typedef
struct
tagLITEM
{
UINT
mask
;
int
iLink
;
UINT
state
;
UINT
stateMask
;
WCHAR
szID
[
MAX_LINKID_TEXT
];
WCHAR
szUrl
[
L_MAX_URL_LENGTH
];
}
LITEM
,
*
PLITEM
;
typedef
struct
tagLHITTESTINFO
{
POINT
pt
;
LITEM
item
;
}
LHITTESTINFO
,
*
PLHITTESTINFO
;
typedef
struct
tagNMLINK
{
NMHDR
hdr
;
LITEM
item
;
}
NMLINK
,
*
PNMLINK
;
#ifdef __cplusplus
}
#endif
...
...
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