mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fix up WM_ENABLE ScrollBarWndProc. Looks like we can disable and enable SB Ctrls.
svn path=/trunk/; revision=16573
This commit is contained in:
parent
2aed25b015
commit
cc3f2972eb
2 changed files with 3 additions and 3 deletions
|
@ -1275,7 +1275,7 @@ ScrollBarWndProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|||
DbgPrint("ScrollBarWndProc WM_ENABLE\n");
|
||||
NtUserEnableScrollBar(Wnd,SB_CTL,(wParam ? ESB_ENABLE_BOTH : ESB_DISABLE_BOTH));
|
||||
/* Refresh Scrollbars. */
|
||||
HDC hdc = GetDCEx( Wnd, 0, DCX_CACHE | SB_CTL );
|
||||
HDC hdc = GetDCEx( Wnd, 0, DCX_CACHE );
|
||||
if (!hdc) return 1;
|
||||
IntDrawScrollBar( Wnd, hdc, SB_CTL);
|
||||
ReleaseDC( Wnd, hdc );
|
||||
|
|
|
@ -641,9 +641,9 @@ NtUserEnableScrollBar(
|
|||
|
||||
if(wSBflags == SB_CTL)
|
||||
{
|
||||
/* FIXME */
|
||||
/* FIXME Enable or Disable SB Ctrl*/
|
||||
DPRINT1("Enable Scrollbar SB_CTL\n");
|
||||
InfoV = IntGetScrollbarInfoFromWindow(Window, SB_VERT);
|
||||
InfoV = IntGetScrollbarInfoFromWindow(Window, SB_CTL);
|
||||
Chg = IntEnableScrollBar(FALSE, InfoV ,wArrows);
|
||||
/* Chg? Scrollbar is Refresh in user32/controls/scrollbar.c. */
|
||||
IntReleaseWindowObject(Window);
|
||||
|
|
Loading…
Reference in a new issue