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
3a824542
Commit
3a824542
authored
Jan 28, 2010
by
Erich Hoover
Committed by
Alexandre Julliard
Jan 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Fix a double-click bug in the Contents tab introduced by the Index tab code.
parent
a0774cab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
help.c
dlls/hhctrl.ocx/help.c
+6
-4
No files found.
dlls/hhctrl.ocx/help.c
View file @
3a824542
...
@@ -397,9 +397,8 @@ static LRESULT OnTabChange(HWND hwnd)
...
@@ -397,9 +397,8 @@ static LRESULT OnTabChange(HWND hwnd)
return
0
;
return
0
;
}
}
static
LRESULT
OnTopicChange
(
H
WND
hwnd
,
void
*
user_data
)
static
LRESULT
OnTopicChange
(
H
HInfo
*
info
,
void
*
user_data
)
{
{
HHInfo
*
info
=
(
HHInfo
*
)
GetWindowLongPtrW
(
hwnd
,
GWLP_USERDATA
);
LPCWSTR
chmfile
=
NULL
,
name
=
NULL
,
local
=
NULL
;
LPCWSTR
chmfile
=
NULL
,
name
=
NULL
,
local
=
NULL
;
ContentItem
*
citer
;
ContentItem
*
citer
;
IndexItem
*
iiter
;
IndexItem
*
iiter
;
...
@@ -474,14 +473,17 @@ static LRESULT CALLBACK Child_WndProc(HWND hWnd, UINT message, WPARAM wParam, LP
...
@@ -474,14 +473,17 @@ static LRESULT CALLBACK Child_WndProc(HWND hWnd, UINT message, WPARAM wParam, LP
case
WM_SIZE
:
case
WM_SIZE
:
return
Child_OnSize
(
hWnd
);
return
Child_OnSize
(
hWnd
);
case
WM_NOTIFY
:
{
case
WM_NOTIFY
:
{
HHInfo
*
info
=
(
HHInfo
*
)
GetWindowLongPtrW
(
hWnd
,
GWLP_USERDATA
);
NMHDR
*
nmhdr
=
(
NMHDR
*
)
lParam
;
NMHDR
*
nmhdr
=
(
NMHDR
*
)
lParam
;
switch
(
nmhdr
->
code
)
{
switch
(
nmhdr
->
code
)
{
case
TCN_SELCHANGE
:
case
TCN_SELCHANGE
:
return
OnTabChange
(
hWnd
);
return
OnTabChange
(
hWnd
);
case
TVN_SELCHANGEDW
:
case
TVN_SELCHANGEDW
:
return
OnTopicChange
(
hWnd
,
(
void
*
)((
NMTREEVIEWW
*
)
lParam
)
->
itemNew
.
lParam
);
return
OnTopicChange
(
info
,
(
void
*
)((
NMTREEVIEWW
*
)
lParam
)
->
itemNew
.
lParam
);
case
NM_DBLCLK
:
case
NM_DBLCLK
:
return
OnTopicChange
(
hWnd
,
(
void
*
)((
NMITEMACTIVATE
*
)
lParam
)
->
lParam
);
if
(
info
->
current_tab
==
TAB_INDEX
)
return
OnTopicChange
(
info
,
(
void
*
)((
NMITEMACTIVATE
*
)
lParam
)
->
lParam
);
}
}
break
;
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