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
803cf4f4
Commit
803cf4f4
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: Clean up Help_WndProc.
parent
8e98ca47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
23 deletions
+17
-23
help.c
dlls/hhctrl.ocx/help.c
+17
-23
No files found.
dlls/hhctrl.ocx/help.c
View file @
803cf4f4
...
...
@@ -30,7 +30,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
htmlhelp
);
static
void
Help_OnSize
(
HWND
hWnd
);
static
LRESULT
Help_OnSize
(
HWND
hWnd
);
/* Window type defaults */
...
...
@@ -584,14 +584,14 @@ static BOOL HH_AddHTMLPane(HHInfo *pHHInfo)
/* Viewer Window */
static
void
Help_OnSize
(
HWND
hWnd
)
static
LRESULT
Help_OnSize
(
HWND
hWnd
)
{
HHInfo
*
pHHInfo
=
(
HHInfo
*
)
GetWindowLongPtrW
(
hWnd
,
GWLP_USERDATA
);
DWORD
dwSize
;
RECT
rc
;
if
(
!
pHHInfo
)
return
;
return
0
;
NP_GetNavigationRect
(
pHHInfo
,
&
rc
);
SetWindowPos
(
pHHInfo
->
WinType
.
hwndNavigation
,
HWND_TOP
,
0
,
0
,
...
...
@@ -613,32 +613,26 @@ static void Help_OnSize(HWND hWnd)
/* Resize browser window taking the frame size into account */
dwSize
=
GetSystemMetrics
(
SM_CXFRAME
);
ResizeWebBrowser
(
pHHInfo
,
rc
.
right
-
dwSize
,
rc
.
bottom
-
dwSize
);
return
0
;
}
static
LRESULT
CALLBACK
Help_WndProc
(
HWND
hWnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
PAINTSTRUCT
ps
;
HDC
hdc
;
switch
(
message
)
{
case
WM_COMMAND
:
if
(
HIWORD
(
wParam
)
==
BN_CLICKED
)
TB_OnClick
(
hWnd
,
LOWORD
(
wParam
));
break
;
case
WM_SIZE
:
Help_OnSize
(
hWnd
);
break
;
case
WM_PAINT
:
hdc
=
BeginPaint
(
hWnd
,
&
ps
);
EndPaint
(
hWnd
,
&
ps
);
break
;
case
WM_DESTROY
:
PostQuitMessage
(
0
);
break
;
default:
return
DefWindowProcW
(
hWnd
,
message
,
wParam
,
lParam
);
case
WM_COMMAND
:
if
(
HIWORD
(
wParam
)
==
BN_CLICKED
)
TB_OnClick
(
hWnd
,
LOWORD
(
wParam
));
break
;
case
WM_SIZE
:
return
Help_OnSize
(
hWnd
);
case
WM_DESTROY
:
PostQuitMessage
(
0
);
break
;
default:
return
DefWindowProcW
(
hWnd
,
message
,
wParam
,
lParam
);
}
return
0
;
...
...
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