user32: SCROLL_SetNCSbState() is not used anymore so remove it.
Francois Gouget
fgouget at free.fr
Mon May 2 17:38:02 CDT 2011
---
dlls/user32/controls.h | 2 --
dlls/user32/scroll.c | 26 --------------------------
2 files changed, 0 insertions(+), 28 deletions(-)
diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h
index 065daeb..66d6659 100644
--- a/dlls/user32/controls.h
+++ b/dlls/user32/controls.h
@@ -179,8 +179,6 @@ extern void NC_GetSysPopupPos( HWND hwnd, RECT* rect ) DECLSPEC_HIDDEN;
/* scrollbar */
extern void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT nBar, BOOL arrows, BOOL interior ) DECLSPEC_HIDDEN;
extern void SCROLL_TrackScrollBar( HWND hwnd, INT scrollbar, POINT pt ) DECLSPEC_HIDDEN;
-extern INT SCROLL_SetNCSbState( HWND hwnd, int vMin, int vMax, int vPos,
- int hMin, int hMax, int hPos ) DECLSPEC_HIDDEN;
/* combo box */
diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c
index fd73bf4..6e6bc37 100644
--- a/dlls/user32/scroll.c
+++ b/dlls/user32/scroll.c
@@ -1919,32 +1919,6 @@ BOOL WINAPI SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRe
/*************************************************************************
- * SCROLL_SetNCSbState
- *
- * Updates both scrollbars at the same time. Used by MDI CalcChildScroll().
- */
-INT SCROLL_SetNCSbState(HWND hwnd, int vMin, int vMax, int vPos,
- int hMin, int hMax, int hPos)
-{
- SCROLLINFO vInfo, hInfo;
-
- vInfo.cbSize = hInfo.cbSize = sizeof(SCROLLINFO);
- vInfo.nMin = vMin;
- vInfo.nMax = vMax;
- vInfo.nPos = vPos;
- hInfo.nMin = hMin;
- hInfo.nMax = hMax;
- hInfo.nPos = hPos;
- vInfo.fMask = hInfo.fMask = SIF_RANGE | SIF_POS;
-
- SCROLL_SetScrollInfo( hwnd, SB_VERT, &vInfo, TRUE );
- SCROLL_SetScrollInfo( hwnd, SB_HORZ, &hInfo, TRUE );
-
- return 0;
-}
-
-
-/*************************************************************************
* GetScrollRange (USER32.@)
*
* Gets the range of the scroll bar.
--
1.7.4.4
More information about the wine-patches
mailing list