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
d57a61f8
Commit
d57a61f8
authored
Nov 01, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: toolbar: Add support for WM_SETFONT.
parent
d44b0dba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
toolbar.c
dlls/comctl32/toolbar.c
+22
-2
No files found.
dlls/comctl32/toolbar.c
View file @
d57a61f8
...
...
@@ -5425,8 +5425,7 @@ TOOLBAR_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_DeleteImageList
(
&
infoPtr
->
himlHot
,
&
infoPtr
->
cimlHot
);
/* delete default font */
if
(
infoPtr
->
hFont
)
DeleteObject
(
infoPtr
->
hDefaultFont
);
DeleteObject
(
infoPtr
->
hDefaultFont
);
CloseThemeData
(
GetWindowTheme
(
hwnd
));
...
...
@@ -6466,6 +6465,24 @@ TOOLBAR_SetFocus (HWND hwnd, WPARAM wParam)
return
0
;
}
static
LRESULT
TOOLBAR_SetFont
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
TRACE
(
"font=%p redraw=%ld
\n
"
,
(
HFONT
)
wParam
,
lParam
);
if
(
wParam
==
0
)
infoPtr
->
hFont
=
infoPtr
->
hDefaultFont
;
else
infoPtr
->
hFont
=
(
HFONT
)
wParam
;
TOOLBAR_CalcToolbar
(
hwnd
);
if
(
lParam
)
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
return
1
;
}
static
LRESULT
TOOLBAR_SetRedraw
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
...
...
@@ -6976,6 +6993,9 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_SETFOCUS
:
return
TOOLBAR_SetFocus
(
hwnd
,
wParam
);
case
WM_SETFONT
:
return
TOOLBAR_SetFont
(
hwnd
,
wParam
,
lParam
);
case
WM_SETREDRAW
:
return
TOOLBAR_SetRedraw
(
hwnd
,
wParam
,
lParam
);
...
...
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