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
5d5de034
Commit
5d5de034
authored
Sep 19, 2005
by
James Hawkins
Committed by
Alexandre Julliard
Sep 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add initial toolbar button handling.
parent
b7603859
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
help.c
dlls/hhctrl.ocx/help.c
+47
-0
No files found.
dlls/hhctrl.ocx/help.c
View file @
5d5de034
...
...
@@ -161,6 +161,49 @@ static void HH_RegisterChildWndClass(HHInfo *pHHInfo)
#define ICON_SIZE 20
static
void
TB_OnClick
(
HWND
hWnd
,
DWORD
dwID
)
{
HHInfo
*
pHHInfo
=
(
HHInfo
*
)
GetWindowLongPtrW
(
hWnd
,
GWLP_USERDATA
);
switch
(
dwID
)
{
case
IDTB_STOP
:
WB_DoPageAction
(
pHHInfo
->
pWBInfo
,
WB_STOP
);
break
;
case
IDTB_REFRESH
:
WB_DoPageAction
(
pHHInfo
->
pWBInfo
,
WB_REFRESH
);
break
;
case
IDTB_BACK
:
WB_DoPageAction
(
pHHInfo
->
pWBInfo
,
WB_GOBACK
);
break
;
case
IDTB_HOME
:
{
WCHAR
szUrl
[
MAX_PATH
];
CHM_CreateITSUrl
(
pHHInfo
->
pCHMInfo
,
pHHInfo
->
pHHWinType
->
pszHome
,
szUrl
);
WB_Navigate
(
pHHInfo
->
pWBInfo
,
szUrl
);
break
;
}
case
IDTB_FORWARD
:
WB_DoPageAction
(
pHHInfo
->
pWBInfo
,
WB_GOFORWARD
);
break
;
case
IDTB_EXPAND
:
case
IDTB_CONTRACT
:
case
IDTB_SYNC
:
case
IDTB_PRINT
:
case
IDTB_OPTIONS
:
case
IDTB_BROWSE_FWD
:
case
IDTB_BROWSE_BACK
:
case
IDTB_JUMP1
:
case
IDTB_JUMP2
:
case
IDTB_CUSTOMIZE
:
case
IDTB_ZOOM
:
case
IDTB_TOC_NEXT
:
case
IDTB_TOC_PREV
:
break
;
}
}
static
void
TB_AddButton
(
TBBUTTON
*
pButtons
,
DWORD
dwIndex
,
DWORD
dwID
)
{
/* FIXME: Load the correct button bitmaps */
...
...
@@ -437,6 +480,10 @@ LRESULT CALLBACK Help_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
switch
(
message
)
{
case
WM_COMMAND
:
if
(
HIWORD
(
wParam
)
==
BN_CLICKED
)
TB_OnClick
(
hWnd
,
LOWORD
(
wParam
));
break
;
case
WM_SIZE
:
Help_OnSize
(
hWnd
,
lParam
);
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