INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: Scroll bar functions"
project: "Visual Eiffel Win32 Library"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: winlib
class WAPI_SCROLL_BAR_FUNCTIONS
inherit

WAPI_ERROR_SERVER
end
feature -- Access

frozen GetScrollPos (hwnd: INTEGER; nbar: INTEGER): INTEGER
-- The `GetScrollPos' function retrieves the current position of the
-- scroll box (thumb) in the specified scroll bar. The current
-- position is a relative value that depends on the current scrolling
-- range. For example, if the scrolling range is 0 through 100 and
-- the scroll box is in the middle of the bar, the current position
-- is 50. The `GetScrollPos' function is provided for backward
-- compatibility.
-- New applications should use the `GetScrollInfo' function.
require
correct_hwnd: hwnd /= null_

ScrollWindow (hwnd, dx, dy: INTEGER; lprcscroll, lprcclip: POINTER)
-- The 'ScrollWindow' procedure scrolls the content of the specified
-- window's client area.
require
correct_hwnd: hwnd /= null_

ScrollWindowEx (hwnd, dx, dy: INTEGER; prcscroll, prcclip: POINTER; hrgnupdate: INTEGER; prcupdate: POINTER; flags: INTEGER)
-- The 'ScrollWindow' procedure scrolls the content of the specified
-- window's client area.

SetScrollPos (hwnd, fnbar, npos, fredraw: INTEGER): INTEGER
-- The 'SetScrollPos' function sets the position of the scroll box (thumb)
-- in the specified scroll bar and, if requested, redraws the scroll bar
-- to reflect the new position of the scroll box.
require
correct_hwnd: hwnd /= null_

SetScrollRange (hwnd, fnbar, nminpos, nmaxpos, fredraw: INTEGER)
-- The 'SetScrollRange' procedure sets the minimum and maximum position
-- values for the specified scroll bar. It can also be used to hide or
-- show a standard scroll bar.
require
correct_hwnd: hwnd /= null_

ShowScrollBar (hwnd, wbar: INTEGER; bshow: BOOLEAN)
-- The `ShowScrollBar' function shows or hides the specified scroll bar.
require
correct_hwnd: hwnd /= null_
feature -- Implementation

wSetScrollPos (hwnd, fnbar, npos, fredraw: INTEGER): INTEGER

wSetScrollRange (hwnd, fnbar, nminpos, nmaxpos, fredraw: INTEGER): INTEGER

wScrollWindow (hwnd, dx, dy: INTEGER; lprcscroll, lprcclip: POINTER): INTEGER

wScrollWindowEx (hwnd, dx, dy: INTEGER; prcscroll, prcclip: POINTER; hrgnupdate: INTEGER; prcupdate: POINTER; flags: INTEGER): INTEGER

wShowScrollBar (hwnd, wbar, bshow: INTEGER): INTEGER
end -- class WAPI_SCROLL_BAR_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES