Fix up WM_ENABLE ScrollBarWndProc. Looks like we can disable and enable SB Ctrls.

svn path=/trunk/; revision=16573
This commit is contained in:
James Tabor 2005-07-15 11:46:38 +00:00
parent 2aed25b015
commit cc3f2972eb
2 changed files with 3 additions and 3 deletions

View file

@ -1275,7 +1275,7 @@ ScrollBarWndProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
DbgPrint("ScrollBarWndProc WM_ENABLE\n"); DbgPrint("ScrollBarWndProc WM_ENABLE\n");
NtUserEnableScrollBar(Wnd,SB_CTL,(wParam ? ESB_ENABLE_BOTH : ESB_DISABLE_BOTH)); NtUserEnableScrollBar(Wnd,SB_CTL,(wParam ? ESB_ENABLE_BOTH : ESB_DISABLE_BOTH));
/* Refresh Scrollbars. */ /* Refresh Scrollbars. */
HDC hdc = GetDCEx( Wnd, 0, DCX_CACHE | SB_CTL ); HDC hdc = GetDCEx( Wnd, 0, DCX_CACHE );
if (!hdc) return 1; if (!hdc) return 1;
IntDrawScrollBar( Wnd, hdc, SB_CTL); IntDrawScrollBar( Wnd, hdc, SB_CTL);
ReleaseDC( Wnd, hdc ); ReleaseDC( Wnd, hdc );

View file

@ -641,9 +641,9 @@ NtUserEnableScrollBar(
if(wSBflags == SB_CTL) if(wSBflags == SB_CTL)
{ {
/* FIXME */ /* FIXME Enable or Disable SB Ctrl*/
DPRINT1("Enable Scrollbar SB_CTL\n"); DPRINT1("Enable Scrollbar SB_CTL\n");
InfoV = IntGetScrollbarInfoFromWindow(Window, SB_VERT); InfoV = IntGetScrollbarInfoFromWindow(Window, SB_CTL);
Chg = IntEnableScrollBar(FALSE, InfoV ,wArrows); Chg = IntEnableScrollBar(FALSE, InfoV ,wArrows);
/* Chg? Scrollbar is Refresh in user32/controls/scrollbar.c. */ /* Chg? Scrollbar is Refresh in user32/controls/scrollbar.c. */
IntReleaseWindowObject(Window); IntReleaseWindowObject(Window);