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
56503620
Commit
56503620
authored
Sep 05, 2012
by
Erich Hoover
Committed by
Alexandre Julliard
Sep 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Resize the window when HH_SET_WIN_TYPE is called.
parent
7477ceb6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
5 deletions
+27
-5
chm.c
dlls/hhctrl.ocx/chm.c
+3
-3
help.c
dlls/hhctrl.ocx/help.c
+20
-0
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+2
-1
hhctrl.h
dlls/hhctrl.ocx/hhctrl.h
+2
-1
No files found.
dlls/hhctrl.ocx/chm.c
View file @
56503620
...
...
@@ -250,7 +250,7 @@ static inline WCHAR *MergeChmString(LPCWSTR src, WCHAR **dst)
return
*
dst
;
}
void
MergeChmProperties
(
HH_WINTYPEW
*
src
,
HHInfo
*
info
)
void
MergeChmProperties
(
HH_WINTYPEW
*
src
,
HHInfo
*
info
,
BOOL
override
)
{
DWORD
unhandled_params
=
src
->
fsValidMembers
&
~
(
HHWIN_PARAM_PROPERTIES
|
HHWIN_PARAM_STYLES
|
HHWIN_PARAM_EXSTYLES
|
HHWIN_PARAM_RECT
|
HHWIN_PARAM_NAV_WIDTH
...
...
@@ -258,7 +258,7 @@ void MergeChmProperties(HH_WINTYPEW *src, HHInfo *info)
|
HHWIN_PARAM_EXPANSION
|
HHWIN_PARAM_TABPOS
|
HHWIN_PARAM_TABORDER
|
HHWIN_PARAM_HISTORY_COUNT
|
HHWIN_PARAM_CUR_TAB
);
HH_WINTYPEW
*
dst
=
&
info
->
WinType
;
DWORD
merge
=
src
->
fsValidMembers
&
~
dst
->
fsValidMembers
;
DWORD
merge
=
override
?
src
->
fsValidMembers
:
src
->
fsValidMembers
&
~
dst
->
fsValidMembers
;
if
(
unhandled_params
)
FIXME
(
"Unsupported fsValidMembers fields: 0x%x
\n
"
,
unhandled_params
);
...
...
@@ -379,7 +379,7 @@ BOOL LoadWinTypeFromCHM(HHInfo *info)
}
/* merge the new data with any pre-existing HH_WINTYPE structure */
MergeChmProperties
(
&
wintype
,
info
);
MergeChmProperties
(
&
wintype
,
info
,
FALSE
);
if
(
!
info
->
WinType
.
pszFile
)
info
->
WinType
.
pszFile
=
info
->
stringsW
.
pszFile
=
strdupW
(
info
->
pCHMInfo
->
defTopic
?
info
->
pCHMInfo
->
defTopic
:
null
);
if
(
!
info
->
WinType
.
pszToc
)
...
...
dlls/hhctrl.ocx/help.c
View file @
56503620
...
...
@@ -1565,6 +1565,26 @@ static LRESULT Help_OnSize(HWND hWnd)
return
0
;
}
void
UpdateHelpWindow
(
HHInfo
*
info
)
{
if
(
!
info
->
WinType
.
hwndHelp
)
return
;
WARN
(
"Only the size of the window is currently updated.
\n
"
);
if
(
info
->
WinType
.
fsValidMembers
&
HHWIN_PARAM_RECT
)
{
RECT
*
rect
=
&
info
->
WinType
.
rcWindowPos
;
INT
x
,
y
,
width
,
height
;
x
=
rect
->
left
;
y
=
rect
->
top
;
width
=
rect
->
right
-
x
;
height
=
rect
->
bottom
-
y
;
SetWindowPos
(
info
->
WinType
.
hwndHelp
,
NULL
,
rect
->
left
,
rect
->
top
,
width
,
height
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
}
static
LRESULT
CALLBACK
Help_WndProc
(
HWND
hWnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
message
)
...
...
dlls/hhctrl.ocx/hhctrl.c
View file @
56503620
...
...
@@ -327,7 +327,8 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
TRACE
(
"Changing WINTYPE, fsValidMembers=0x%x
\n
"
,
wintype
->
fsValidMembers
);
MergeChmProperties
(
wintype
,
info
);
MergeChmProperties
(
wintype
,
info
,
TRUE
);
UpdateHelpWindow
(
info
);
return
0
;
}
case
HH_GET_WIN_TYPE
:
{
...
...
dlls/hhctrl.ocx/hhctrl.h
View file @
56503620
...
...
@@ -218,7 +218,8 @@ HHInfo *CreateHelpViewer(HHInfo*,LPCWSTR,HWND) DECLSPEC_HIDDEN;
void
ReleaseHelpViewer
(
HHInfo
*
)
DECLSPEC_HIDDEN
;
BOOL
NavigateToUrl
(
HHInfo
*
,
LPCWSTR
)
DECLSPEC_HIDDEN
;
BOOL
NavigateToChm
(
HHInfo
*
,
LPCWSTR
,
LPCWSTR
)
DECLSPEC_HIDDEN
;
void
MergeChmProperties
(
HH_WINTYPEW
*
,
HHInfo
*
)
DECLSPEC_HIDDEN
;
void
MergeChmProperties
(
HH_WINTYPEW
*
,
HHInfo
*
,
BOOL
)
DECLSPEC_HIDDEN
;
void
UpdateHelpWindow
(
HHInfo
*
info
)
DECLSPEC_HIDDEN
;
void
InitSearch
(
HHInfo
*
info
,
const
char
*
needle
)
DECLSPEC_HIDDEN
;
void
ReleaseSearch
(
HHInfo
*
info
)
DECLSPEC_HIDDEN
;
...
...
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