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
3e33f61c
Commit
3e33f61c
authored
May 29, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/comboex: Add support for setting the font.
parent
7624da76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
comboex.c
dlls/comctl32/comboex.c
+15
-0
No files found.
dlls/comctl32/comboex.c
View file @
3e33f61c
...
...
@@ -1607,6 +1607,15 @@ static LRESULT COMBOEX_Size (COMBOEX_INFO *infoPtr, INT width, INT height)
return
0
;
}
static
LRESULT
COMBOEX_SetFont
(
COMBOEX_INFO
*
infoPtr
,
HFONT
font
,
BOOL
redraw
)
{
infoPtr
->
font
=
font
;
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_SETFONT
,
(
WPARAM
)
font
,
0
);
if
(
infoPtr
->
hwndEdit
)
SendMessageW
(
infoPtr
->
hwndEdit
,
WM_SETFONT
,
(
WPARAM
)
font
,
0
);
COMBOEX_ReSize
(
infoPtr
);
if
(
redraw
)
InvalidateRect
(
infoPtr
->
hwndCombo
,
NULL
,
TRUE
);
return
0
;
}
static
LRESULT
COMBOEX_SetRedraw
(
const
COMBOEX_INFO
*
infoPtr
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -2136,6 +2145,12 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_SIZE
:
return
COMBOEX_Size
(
infoPtr
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
case
WM_GETFONT
:
return
(
LRESULT
)
infoPtr
->
font
;
case
WM_SETFONT
:
return
COMBOEX_SetFont
(
infoPtr
,
(
HFONT
)
wParam
,
LOWORD
(
lParam
)
!=
0
);
case
WM_SETREDRAW
:
return
COMBOEX_SetRedraw
(
infoPtr
,
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