mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:03:25 +00:00
Fixing WM_ENABLE ScrollBarWndProc. Tested it with 7-Zip, AbiWord, RegEdit and Winefile, all seem not to use it. Please test this.
svn path=/trunk/; revision=16571
This commit is contained in:
parent
a8f77a38bd
commit
3c13baae03
2 changed files with 20 additions and 9 deletions
|
@ -1263,18 +1263,25 @@ ScrollBarWndProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
IntScrollCreateScrollBar(Wnd, (LPCREATESTRUCTW) lParam);
|
IntScrollCreateScrollBar(Wnd, (LPCREATESTRUCTW) lParam);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#if 0 /* FIXME */
|
//#if 0 /* FIXME */
|
||||||
case WM_ENABLE:
|
case WM_ENABLE:
|
||||||
{
|
{
|
||||||
SCROLLBAR_INFO *infoPtr;
|
// SCROLLBAR_INFO *infoPtr;
|
||||||
if ((infoPtr = SCROLL_GetScrollBarInfo( hwnd, SB_CTL )))
|
// if ((infoPtr = SCROLL_GetScrollBarInfo( hwnd, SB_CTL )))
|
||||||
{
|
// {
|
||||||
infoPtr->flags = wParam ? ESB_ENABLE_BOTH : ESB_DISABLE_BOTH;
|
// infoPtr->flags = wParam ? ESB_ENABLE_BOTH : ESB_DISABLE_BOTH;
|
||||||
SCROLL_RefreshScrollBar(hwnd, SB_CTL, TRUE, TRUE);
|
// SCROLL_RefreshScrollBar(hwnd, SB_CTL, TRUE, TRUE);
|
||||||
}
|
// }
|
||||||
|
DbgPrint("ScrollBarWndProc WM_ENABLE\n");
|
||||||
|
NtUserEnableScrollBar(Wnd,SB_CTL,wParam);
|
||||||
|
/* Refresh Scrollbars. */
|
||||||
|
HDC hdc = GetDCEx( Wnd, 0, DCX_CACHE | SB_CTL );
|
||||||
|
if (!hdc) return 1;
|
||||||
|
IntDrawScrollBar( Wnd, hdc, SB_CTL);
|
||||||
|
ReleaseDC( Wnd, hdc );
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
case WM_LBUTTONDBLCLK:
|
case WM_LBUTTONDBLCLK:
|
||||||
case WM_LBUTTONDOWN:
|
case WM_LBUTTONDOWN:
|
||||||
|
|
|
@ -642,8 +642,12 @@ NtUserEnableScrollBar(
|
||||||
if(wSBflags == SB_CTL)
|
if(wSBflags == SB_CTL)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
|
DPRINT1("Enable Scrollbar SB_CTL\n");
|
||||||
|
InfoV = IntGetScrollbarInfoFromWindow(Window, SB_VERT);
|
||||||
|
Chg = IntEnableScrollBar(FALSE, InfoV ,wArrows);
|
||||||
|
/* Chg? Scrollbar is Refresh in user32/controls/scrollbar.c. */
|
||||||
IntReleaseWindowObject(Window);
|
IntReleaseWindowObject(Window);
|
||||||
return FALSE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(wSBflags != SB_BOTH && !SBID_IS_VALID(wSBflags))
|
if(wSBflags != SB_BOTH && !SBID_IS_VALID(wSBflags))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue