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
f3bcc0c4
Commit
f3bcc0c4
authored
Feb 06, 2007
by
Clinton Stimpson
Committed by
Alexandre Julliard
Feb 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: WM_SETFONT on button doesn't repaint directly.
parent
a0682176
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
button.c
dlls/user32/button.c
+1
-1
msg.c
dlls/user32/tests/msg.c
+16
-0
No files found.
dlls/user32/button.c
View file @
f3bcc0c4
...
...
@@ -410,7 +410,7 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
case
WM_SETFONT
:
set_button_font
(
hWnd
,
(
HFONT
)
wParam
);
if
(
lParam
)
paint_button
(
hWnd
,
btn_type
,
ODA_DRAWENTIRE
);
if
(
lParam
)
InvalidateRect
(
hWnd
,
NULL
,
TRUE
);
break
;
case
WM_GETFONT
:
...
...
dlls/user32/tests/msg.c
View file @
f3bcc0c4
...
...
@@ -4229,6 +4229,14 @@ static const struct message WmLButtonUpSeq[] =
{
WM_CAPTURECHANGED
,
sent
|
wparam
|
defwinproc
,
0
},
{
0
}
};
static
const
struct
message
WmSetFontButtonSeq
[]
=
{
{
WM_SETFONT
,
sent
},
{
WM_PAINT
,
sent
},
{
WM_ERASEBKGND
,
sent
|
defwinproc
},
{
WM_CTLCOLORBTN
,
sent
|
defwinproc
},
{
0
}
};
static
WNDPROC
old_button_proc
;
...
...
@@ -4309,6 +4317,7 @@ static void test_button_messages(void)
unsigned
int
i
;
HWND
hwnd
;
DWORD
dlg_code
;
HFONT
zfont
;
subclass_button
();
...
...
@@ -4348,6 +4357,13 @@ static void test_button_messages(void)
SendMessageA
(
hwnd
,
WM_LBUTTONUP
,
0
,
0
);
ok_sequence
(
WmLButtonUpSeq
,
"WM_LBUTTONUP on a button"
,
FALSE
);
flush_sequence
();
zfont
=
(
HFONT
)
GetStockObject
(
SYSTEM_FONT
);
SendMessageA
(
hwnd
,
WM_SETFONT
,
(
WPARAM
)
zfont
,
TRUE
);
UpdateWindow
(
hwnd
);
ok_sequence
(
WmSetFontButtonSeq
,
"WM_SETFONT on a button"
,
FALSE
);
DestroyWindow
(
hwnd
);
}
...
...
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