• Zhiyi Zhang's avatar
    comctl32/toolbar: Don't use outside theme handles. · 8107462b
    Zhiyi Zhang authored
    Fix Spy++ Toolbar buttons have artifacts. Spy++ first creates a Toolbar window, then calls
    OpenThemeData(hwnd, "Rebar") with the Toolbar window. Then when the Toolbar control uses the theme
    handle from GetWindowTheme(), it gets a Rebar theme the next time it draws, thus drawing wrong theme
    parts.
    
    According the tests, not all of the common controls have such behaviors. Some of them do have theme
    handles opened by their window and then use that theme handle afterwards even it's changed from the
    outside. However, for other controls, the behaviors are not very consistent across all Windows
    versions. Also no applications depend on such behaviors for other controls yet. So, only modify the
    Toolbar control for now.
    Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    8107462b
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...