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
f1919c61
Commit
f1919c61
authored
Feb 28, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Added handling of topic selection.
parent
e9654359
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
help.c
dlls/hhctrl.ocx/help.c
+26
-0
No files found.
dlls/hhctrl.ocx/help.c
View file @
f1919c61
...
...
@@ -2,6 +2,7 @@
* Help Viewer Implementation
*
* Copyright 2005 James Hawkins
* Copyright 2007 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -341,6 +342,29 @@ static LRESULT OnTabChange(HWND hwnd)
return
0
;
}
static
LRESULT
OnTopicChange
(
HWND
hwnd
,
ContentItem
*
item
)
{
HHInfo
*
info
=
(
HHInfo
*
)
GetWindowLongPtrW
(
hwnd
,
GWLP_USERDATA
);
LPCWSTR
chmfile
=
NULL
;
ContentItem
*
iter
=
item
;
if
(
!
item
||
!
info
)
return
0
;
TRACE
(
"name %s loal %s
\n
"
,
debugstr_w
(
item
->
name
),
debugstr_w
(
item
->
local
));
while
(
iter
)
{
if
(
iter
->
merge
.
chm_file
)
{
chmfile
=
iter
->
merge
.
chm_file
;
break
;
}
iter
=
iter
->
parent
;
}
NavigateToChm
(
info
,
chmfile
,
item
->
local
);
return
0
;
}
static
LRESULT
CALLBACK
Child_WndProc
(
HWND
hWnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
message
)
...
...
@@ -354,6 +378,8 @@ static LRESULT CALLBACK Child_WndProc(HWND hWnd, UINT message, WPARAM wParam, LP
switch
(
nmhdr
->
code
)
{
case
TCN_SELCHANGE
:
return
OnTabChange
(
hWnd
);
case
TVN_SELCHANGEDW
:
return
OnTopicChange
(
hWnd
,
(
ContentItem
*
)((
NMTREEVIEWW
*
)
lParam
)
->
itemNew
.
lParam
);
}
break
;
}
...
...
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