[NtUser]
authorJames Tabor <james.tabor@reactos.org>
Tue, 28 Feb 2017 17:11:08 +0000 (17:11 +0000)
committerJames Tabor <james.tabor@reactos.org>
Tue, 28 Feb 2017 17:11:08 +0000 (17:11 +0000)
- Patch to level up scroll bar code, based on mudhead patch. See CORE-12827.

svn path=/trunk/; revision=74003

reactos/win32ss/user/ntuser/scrollbar.c

index 78d4820..ba8bf8e 100644 (file)
@@ -750,7 +750,7 @@ co_UserShowScrollBar(PWND Wnd, int nBar, BOOL fShowH, BOOL fShowV)
          break;
       default:
          EngSetLastError(ERROR_INVALID_PARAMETER);
          break;
       default:
          EngSetLastError(ERROR_INVALID_PARAMETER);
-         return FALSE;
+         return FALSE; /* Nothing to do! */
    }
 
    old_style = IntSetStyle( Wnd, set_bits, clear_bits );
    }
 
    old_style = IntSetStyle( Wnd, set_bits, clear_bits );
@@ -761,11 +761,11 @@ co_UserShowScrollBar(PWND Wnd, int nBar, BOOL fShowH, BOOL fShowV)
       //if (Wnd->style & WS_VSCROLL) IntUpdateSBInfo(Wnd, SB_VERT);
       /////
          /* Frame has been changed, let the window redraw itself */
       //if (Wnd->style & WS_VSCROLL) IntUpdateSBInfo(Wnd, SB_VERT);
       /////
          /* Frame has been changed, let the window redraw itself */
-      co_WinPosSetWindowPos(Wnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE |
-                            SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED | SWP_NOSENDCHANGING);
+      co_WinPosSetWindowPos( Wnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE
+                           | SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED );
       return TRUE;
    }
       return TRUE;
    }
-   return FALSE;
+   return FALSE; /* no frame changes */
 }
 
 static void
 }
 
 static void