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
61cc5106
Commit
61cc5106
authored
Apr 22, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Now use the icon out of hlpfile if any.
parent
c631bb0b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
hlpfile.c
programs/winhelp/hlpfile.c
+10
-0
hlpfile.h
programs/winhelp/hlpfile.h
+1
-0
winhelp.c
programs/winhelp/winhelp.c
+5
-0
No files found.
programs/winhelp/hlpfile.c
View file @
61cc5106
...
...
@@ -1534,6 +1534,15 @@ static BOOL HLPFILE_SystemCommands(HLPFILE* hlpfile)
*
m
=
macro
;
break
;
case
5
:
if
(
GET_USHORT
(
ptr
,
4
+
4
)
!=
1
)
WINE_FIXME
(
"More than one icon, picking up first
\n
"
);
/* 0x16 is sizeof(CURSORICONDIR), see user32/user_private.h */
hlpfile
->
hIcon
=
CreateIconFromResourceEx
(
ptr
+
4
+
0x16
,
GET_USHORT
(
ptr
,
2
)
-
0x16
,
TRUE
,
0x30000
,
0
,
0
,
0
);
break
;
case
6
:
if
(
GET_USHORT
(
ptr
,
2
)
!=
90
)
{
WINE_WARN
(
"system6
\n
"
);
break
;}
...
...
@@ -2261,6 +2270,7 @@ void HLPFILE_FreeHlpFile(HLPFILE* hlpfile)
HLPFILE_DeletePage
(
hlpfile
->
first_page
);
HLPFILE_DeleteMacro
(
hlpfile
->
first_macro
);
DestroyIcon
(
hlpfile
->
hIcon
);
if
(
hlpfile
->
numWindows
)
HeapFree
(
GetProcessHeap
(),
0
,
hlpfile
->
windows
);
HeapFree
(
GetProcessHeap
(),
0
,
hlpfile
->
Context
);
HeapFree
(
GetProcessHeap
(),
0
,
hlpfile
->
Map
);
...
...
programs/winhelp/hlpfile.h
View file @
61cc5106
...
...
@@ -162,6 +162,7 @@ typedef struct tagHlpFileFile
unsigned
numWindows
;
HLPFILE_WINDOWINFO
*
windows
;
HICON
hIcon
;
}
HLPFILE
;
/*
...
...
programs/winhelp/winhelp.c
View file @
61cc5106
...
...
@@ -530,6 +530,7 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
WINHELP_WINDOW
*
win
=
NULL
;
BOOL
bPrimary
,
bPopup
,
bReUsed
=
FALSE
;
LPSTR
name
;
HICON
hIcon
;
bPrimary
=
!
lstrcmpi
(
wpage
->
wininfo
->
name
,
"main"
);
bPopup
=
!
bPrimary
&&
(
wpage
->
wininfo
->
win_style
&
WS_POPUP
);
...
...
@@ -633,6 +634,10 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
0
,
0
,
0
,
0
,
win
->
hMainWnd
,
(
HMENU
)
CTL_ID_TEXT
,
Globals
.
hInstance
,
win
);
}
hIcon
=
(
wpage
->
page
)
?
wpage
->
page
->
file
->
hIcon
:
NULL
;
if
(
!
hIcon
)
hIcon
=
LoadIcon
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
IDI_WINHELP
));
SendMessage
(
win
->
hMainWnd
,
WM_SETICON
,
ICON_SMALL
,
(
DWORD_PTR
)
hIcon
);
/* Initialize file specific pushbuttons */
if
(
!
(
wpage
->
wininfo
->
win_style
&
WS_POPUP
)
&&
wpage
->
page
)
{
...
...
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