mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 17:45:06 +00:00
[WIN32SS] Store the scrollbar theming enabled flag in the scrollbar
This ensure we do not rely on usermode for always passing this flag in, which is a ReactOS specific flag. Thanks to Doug Lyons for finding the source of the problem. CORE-17780
This commit is contained in:
parent
7bfc35c366
commit
fd28a69de6
1 changed files with 6 additions and 1 deletions
|
@ -528,6 +528,11 @@ co_IntSetScrollInfo(PWND Window, INT nBar, LPCSCROLLINFO lpsi, BOOL bRedraw)
|
||||||
Info = IntGetScrollInfoFromWindow(Window, nBar);
|
Info = IntGetScrollInfoFromWindow(Window, nBar);
|
||||||
pSBData = IntGetSBData(Window, nBar);
|
pSBData = IntGetSBData(Window, nBar);
|
||||||
|
|
||||||
|
if (lpsi->fMask & SIF_THEMED && !(Info->fMask & SIF_THEMED))
|
||||||
|
{
|
||||||
|
Info->fMask |= SIF_THEMED;
|
||||||
|
}
|
||||||
|
|
||||||
/* Set the page size */
|
/* Set the page size */
|
||||||
if (lpsi->fMask & SIF_PAGE)
|
if (lpsi->fMask & SIF_PAGE)
|
||||||
{
|
{
|
||||||
|
@ -660,7 +665,7 @@ co_IntSetScrollInfo(PWND Window, INT nBar, LPCSCROLLINFO lpsi, BOOL bRedraw)
|
||||||
return lpsi->fMask & SIF_PREVIOUSPOS ? OldPos : pSBData->pos; /* SetWindowPos() already did the painting */
|
return lpsi->fMask & SIF_PREVIOUSPOS ? OldPos : pSBData->pos; /* SetWindowPos() already did the painting */
|
||||||
if (bRedraw)
|
if (bRedraw)
|
||||||
{
|
{
|
||||||
if (!(lpsi->fMask & SIF_THEMED)) /* Not Using Themes */
|
if (!(Info->fMask & SIF_THEMED)) /* Not Using Themes */
|
||||||
{
|
{
|
||||||
TRACE("Not using themes.\n");
|
TRACE("Not using themes.\n");
|
||||||
if (action & SA_SSI_REPAINT_ARROWS)
|
if (action & SA_SSI_REPAINT_ARROWS)
|
||||||
|
|
Loading…
Reference in a new issue