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
d1c36342
Commit
d1c36342
authored
Oct 03, 2012
by
Erich Hoover
Committed by
Alexandre Julliard
Oct 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Recognize the embedded window name for finding existing windows.
parent
aedcc11e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
help.c
dlls/hhctrl.ocx/help.c
+21
-0
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+0
-12
hhctrl.h
dlls/hhctrl.ocx/hhctrl.h
+2
-1
No files found.
dlls/hhctrl.ocx/help.c
View file @
d1c36342
...
@@ -1825,6 +1825,7 @@ void ReleaseHelpViewer(HHInfo *info)
...
@@ -1825,6 +1825,7 @@ void ReleaseHelpViewer(HHInfo *info)
HHInfo
*
CreateHelpViewer
(
HHInfo
*
info
,
LPCWSTR
filename
,
HWND
caller
)
HHInfo
*
CreateHelpViewer
(
HHInfo
*
info
,
LPCWSTR
filename
,
HWND
caller
)
{
{
HHInfo
*
tmp_info
;
int
i
;
int
i
;
if
(
!
info
)
if
(
!
info
)
...
@@ -1853,6 +1854,13 @@ HHInfo *CreateHelpViewer(HHInfo *info, LPCWSTR filename, HWND caller)
...
@@ -1853,6 +1854,13 @@ HHInfo *CreateHelpViewer(HHInfo *info, LPCWSTR filename, HWND caller)
}
}
info
->
WinType
.
hwndCaller
=
caller
;
info
->
WinType
.
hwndCaller
=
caller
;
/* If the window is already open then load the file in that existing window */
if
((
tmp_info
=
find_window
(
info
->
WinType
.
pszType
))
&&
tmp_info
!=
info
)
{
ReleaseHelpViewer
(
info
);
return
CreateHelpViewer
(
tmp_info
,
filename
,
caller
);
}
if
(
!
info
->
viewer_initialized
&&
!
CreateViewer
(
info
))
{
if
(
!
info
->
viewer_initialized
&&
!
CreateViewer
(
info
))
{
ReleaseHelpViewer
(
info
);
ReleaseHelpViewer
(
info
);
return
NULL
;
return
NULL
;
...
@@ -1949,3 +1957,16 @@ WCHAR *decode_html(const char *html_fragment, int html_fragment_len, UINT code_p
...
@@ -1949,3 +1957,16 @@ WCHAR *decode_html(const char *html_fragment, int html_fragment_len, UINT code_p
heap_free
(
tmp
);
heap_free
(
tmp
);
return
unicode_text
;
return
unicode_text
;
}
}
/* Find the HTMLHelp structure for an existing window title */
HHInfo
*
find_window
(
const
WCHAR
*
window
)
{
HHInfo
*
info
;
LIST_FOR_EACH_ENTRY
(
info
,
&
window_list
,
HHInfo
,
entry
)
{
if
(
strcmpW
(
info
->
WinType
.
pszType
,
window
)
==
0
)
return
info
;
}
return
NULL
;
}
dlls/hhctrl.ocx/hhctrl.c
View file @
d1c36342
...
@@ -146,18 +146,6 @@ static BOOL resolve_filename(const WCHAR *filename, WCHAR *fullname, DWORD bufle
...
@@ -146,18 +146,6 @@ static BOOL resolve_filename(const WCHAR *filename, WCHAR *fullname, DWORD bufle
return
(
GetFileAttributesW
(
fullname
)
!=
INVALID_FILE_ATTRIBUTES
);
return
(
GetFileAttributesW
(
fullname
)
!=
INVALID_FILE_ATTRIBUTES
);
}
}
static
inline
HHInfo
*
find_window
(
const
WCHAR
*
window
)
{
HHInfo
*
info
;
LIST_FOR_EACH_ENTRY
(
info
,
&
window_list
,
HHInfo
,
entry
)
{
if
(
strcmpW
(
info
->
WinType
.
pszType
,
window
)
==
0
)
return
info
;
}
return
NULL
;
}
/******************************************************************
/******************************************************************
* HtmlHelpW (HHCTRL.OCX.15)
* HtmlHelpW (HHCTRL.OCX.15)
*/
*/
...
...
dlls/hhctrl.ocx/hhctrl.h
View file @
d1c36342
...
@@ -227,7 +227,8 @@ void ReleaseSearch(HHInfo *info) DECLSPEC_HIDDEN;
...
@@ -227,7 +227,8 @@ void ReleaseSearch(HHInfo *info) DECLSPEC_HIDDEN;
LPCWSTR
skip_schema
(
LPCWSTR
url
)
DECLSPEC_HIDDEN
;
LPCWSTR
skip_schema
(
LPCWSTR
url
)
DECLSPEC_HIDDEN
;
void
wintype_stringsA_free
(
struct
wintype_stringsA
*
stringsA
)
DECLSPEC_HIDDEN
;
void
wintype_stringsA_free
(
struct
wintype_stringsA
*
stringsA
)
DECLSPEC_HIDDEN
;
void
wintype_stringsW_free
(
struct
wintype_stringsW
*
stringsW
)
DECLSPEC_HIDDEN
;
void
wintype_stringsW_free
(
struct
wintype_stringsW
*
stringsW
)
DECLSPEC_HIDDEN
;
WCHAR
*
decode_html
(
const
char
*
html_fragment
,
int
html_fragment_len
,
UINT
code_page
);
WCHAR
*
decode_html
(
const
char
*
html_fragment
,
int
html_fragment_len
,
UINT
code_page
)
DECLSPEC_HIDDEN
;
HHInfo
*
find_window
(
const
WCHAR
*
window
)
DECLSPEC_HIDDEN
;
/* memory allocation functions */
/* memory allocation functions */
...
...
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