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
07638618
Commit
07638618
authored
Apr 19, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Set the window class small icon for all classes.
parent
5b32b11e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
winhelp.c
programs/winhlp32/winhelp.c
+11
-6
No files found.
programs/winhlp32/winhelp.c
View file @
07638618
...
...
@@ -817,7 +817,8 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
}
hIcon
=
(
wpage
->
page
)
?
wpage
->
page
->
file
->
hIcon
:
NULL
;
if
(
!
hIcon
)
hIcon
=
LoadIcon
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
IDI_WINHELP
));
if
(
!
hIcon
)
hIcon
=
LoadImage
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
IDI_WINHELP
),
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_SHARED
);
SendMessage
(
win
->
hMainWnd
,
WM_SETICON
,
ICON_SMALL
,
(
DWORD_PTR
)
hIcon
);
/* Initialize file specific pushbuttons */
...
...
@@ -1633,8 +1634,9 @@ BOOL WINHELP_CreateIndexWindow(BOOL is_search)
*/
static
BOOL
WINHELP_RegisterWinClasses
(
void
)
{
WNDCLASS
class_main
,
class_button_box
,
class_shadow
,
class_history
;
WNDCLASS
EX
class_main
,
class_button_box
,
class_shadow
,
class_history
;
class_main
.
cbSize
=
sizeof
(
class_main
);
class_main
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
class_main
.
lpfnWndProc
=
WINHELP_MainWndProc
;
class_main
.
cbClsExtra
=
0
;
...
...
@@ -1645,6 +1647,9 @@ static BOOL WINHELP_RegisterWinClasses(void)
class_main
.
hbrBackground
=
(
HBRUSH
)(
COLOR_WINDOW
+
1
);
class_main
.
lpszMenuName
=
0
;
class_main
.
lpszClassName
=
MAIN_WIN_CLASS_NAME
;
class_main
.
hIconSm
=
LoadImage
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
IDI_WINHELP
),
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_SHARED
);
class_button_box
=
class_main
;
class_button_box
.
lpfnWndProc
=
WINHELP_ButtonBoxWndProc
;
...
...
@@ -1662,10 +1667,10 @@ static BOOL WINHELP_RegisterWinClasses(void)
class_history
.
lpfnWndProc
=
WINHELP_HistoryWndProc
;
class_history
.
lpszClassName
=
HISTORY_WIN_CLASS_NAME
;
return
(
RegisterClass
(
&
class_main
)
&&
RegisterClass
(
&
class_button_box
)
&&
RegisterClass
(
&
class_shadow
)
&&
RegisterClass
(
&
class_history
));
return
(
RegisterClass
Ex
(
&
class_main
)
&&
RegisterClass
Ex
(
&
class_button_box
)
&&
RegisterClass
Ex
(
&
class_shadow
)
&&
RegisterClass
Ex
(
&
class_history
));
}
/***********************************************************************
...
...
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