wine/dlls/comctl32
Zhiyi Zhang 830348d78c comctl32/button: Pass the destination rectangle to GetThemePartSize() when painting check boxes.
The destination rectangle may be smaller than that of theme parts, in which case, the draw size
returned is adjusted to fit the destination rectangle. Without passing a destination rectangle
to GetThemePartSize(), the function assumes that there is no limit for destination.

This fixes winecfg check boxes missing the upper edge in 192 DPI. You may notice that the check box
bitmap is slightly shrank and so the shape is a bit off. However, this is what happens on Windows as
well when check box height is set to 8 DLUs.

GetThemePartSize() without destination rectangles are also used in other controls, but manual tests
showed that those controls don't shrink their theme background as check boxes do so they are left
unchanged.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-15 11:32:50 +02:00
..
tests comctl32/listview: Add partial support for LVM_SETBKIMAGE. 2022-06-28 16:30:27 +02:00
animate.c
button.c comctl32/button: Pass the destination rectangle to GetThemePartSize() when painting check boxes. 2022-07-15 11:32:50 +02:00
combo.c
comboex.c
comctl32.h
comctl32.manifest
comctl32.rc
comctl32.spec
commctrl.c
datetime.c
dpa.c comctl32: Fix integer overflow in DPA_Search. 2022-06-10 11:58:52 +02:00
draglist.c
dsa.c
edit.c
flatsb.c
header.c
hotkey.c
idb_cmdlink.bmp
idb_hist_large.bmp
idb_hist_large.svg
idb_hist_small.bmp
idb_hist_small.svg
idb_std_large.bmp
idb_std_large.svg
idb_std_small.bmp
idb_std_small.svg
idb_view_large.bmp
idb_view_large.svg
idb_view_small.bmp
idb_view_small.svg
idc_copy.cur
idc_copy.svg
idc_divider.cur
idc_divider.svg
idc_divideropen.cur
idc_divideropen.svg
idc_movebutton.cur
idc_movebutton.svg
idi_dragarrow.ico
idi_tt_error_sm.ico
idi_tt_info_sm.ico
idi_tt_warn_sm.ico
idt_check.bmp
imagelist.c
ipaddress.c
listbox.c win32u: Remove the "proc" parameter to NtUserSetSystemTimer(). 2022-04-21 14:41:22 +02:00
listview.c comctl32/listview: Add partial support for LVM_SETBKIMAGE. 2022-06-28 16:30:27 +02:00
Makefile.in comctl32: Remove obsolete -D_COMCTL32_ from Makefile.in. 2022-04-28 12:17:32 +02:00
monthcal.c
nativefont.c
pager.c
progress.c
propsheet.c
rebar.c
smoothscroll.c
static.c comctl32: Always paint SS_BITMAP static control background with WM_CTLCOLORSTATIC brush. 2022-06-17 18:06:53 +02:00
status.c
string.c
syslink.c
tab.c
taskdialog.c
toolbar.c comctl32/toolbar: Don't use pattern brushes to draw checked background. 2022-06-21 18:53:17 +02:00
tooltips.c
trackbar.c
treeview.c
updown.c