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
756d8e17
Commit
756d8e17
authored
Aug 15, 2005
by
James Hawkins
Committed by
Alexandre Julliard
Aug 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle resizing the help viewer window.
parent
6451a149
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
help.c
dlls/hhctrl.ocx/help.c
+29
-1
No files found.
dlls/hhctrl.ocx/help.c
View file @
756d8e17
...
...
@@ -389,6 +389,32 @@ static BOOL HH_AddHTMLPane(HHInfo *pHHInfo)
/* Viewer Window */
static
void
Help_OnSize
(
HWND
hWnd
,
LPARAM
lParam
)
{
HHInfo
*
pHHInfo
=
(
HHInfo
*
)
GetWindowLongPtrW
(
hWnd
,
GWLP_USERDATA
);
RECT
rc
;
if
(
!
pHHInfo
)
return
;
/* Only resize the Navigation pane vertically */
if
(
HIWORD
(
lParam
))
{
NP_GetNavigationRect
(
pHHInfo
,
&
rc
);
SetWindowPos
(
pHHInfo
->
pHHWinType
->
hwndNavigation
,
HWND_TOP
,
0
,
0
,
rc
.
right
,
rc
.
bottom
,
SWP_NOMOVE
);
GetClientRect
(
pHHInfo
->
pHHWinType
->
hwndNavigation
,
&
rc
);
SetWindowPos
(
pHHInfo
->
hwndTabCtrl
,
HWND_TOP
,
0
,
0
,
rc
.
right
-
TAB_PADDING
-
TAB_RIGHT_PADDING
,
rc
.
bottom
-
TAB_PADDING
-
TAB_TOP_PADDING
,
SWP_NOMOVE
);
}
HP_GetHTMLRect
(
pHHInfo
,
&
rc
);
SetWindowPos
(
pHHInfo
->
pHHWinType
->
hwndHTML
,
HWND_TOP
,
0
,
0
,
LOWORD
(
lParam
),
HIWORD
(
lParam
),
SWP_NOMOVE
);
}
LRESULT
CALLBACK
Help_WndProc
(
HWND
hWnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
PAINTSTRUCT
ps
;
...
...
@@ -396,7 +422,9 @@ LRESULT CALLBACK Help_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
switch
(
message
)
{
case
WM_SIZE
:
Help_OnSize
(
hWnd
,
lParam
);
break
;
case
WM_PAINT
:
hdc
=
BeginPaint
(
hWnd
,
&
ps
);
EndPaint
(
hWnd
,
&
ps
);
...
...
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